Share via

Access 365 Runtime error 2683

Anonymous
2018-07-17T16:41:28+00:00

Hello,

I have recently updated our access file to 365, and now our calendar buttons do not work. I am newly learning coding and I am stuck.


Option Compare Database

Option Explicit

Private Sub Calendar1_Click()

    Me.Visible = False

End Sub

Private Sub Cancelbtn_Click()

    Me.Calendar1.Value = Me.OpenArgs

    Me.Visible = False

End Sub

Private Sub Form_Load()

    If (Not IsNull(Me.OpenArgs)) Then

        Me.Calendar1.Value = Me.OpenArgs

    End If

End Sub

Private Sub CalendarUpDwn_UpClick()

        Me!Calendar1.NextMonth

End Sub

Private Sub CalendarUpDwn_DownClick()

        Me!Calendar1.PreviousMonth

End Sub

Private Sub OKbtn_Click()

    Me.Visible = False

End Sub


The blue line is where the error occurs. Any help will be appreciated.

Thanks!

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Anonymous
    2018-07-17T19:06:41+00:00

    Hmm, did not think of that!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-07-17T18:50:20+00:00

    What is Calendar1?  Is it an ActiveX calendar control?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-07-17T18:47:47+00:00

    Hmm, there is no Access 365 Runtime so it must be Access 2013 or 2016 Runtime. 

    Gina, I suspect it's a "run-time error", not an error from the runtime module.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-07-17T17:25:05+00:00

    What is Me.OpenArgs returning as a value?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2018-07-17T17:16:05+00:00

    Hmm, there is no Access 365 Runtime so it must be Access 2013 or 2016 Runtime.  That said, might be a Reference problem.  Have a look here...

    https://www.access-diva.com/d5.html

    EDIT:  Or a not in a Trusted Location, see here...

    https://www.access-diva.com/d4.html

    Was this answer helpful?

    0 comments No comments