A family of Microsoft relational database management systems designed for ease of use.
Hmm, did not think of that!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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!
A family of Microsoft relational database management systems designed for ease of use.
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.
Hmm, did not think of that!
What is Calendar1? Is it an ActiveX calendar control?
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.
What is Me.OpenArgs returning as a value?
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...