I have a popup calendar that I created from the dbPopCalendar db here on this forum. It works perfectly. I created a tool tip telling users to click on the calendar icon to open the calendar. The tooltip visible property is set to no. I then created an If-Then statement on the mouse down event of the to to make the calendar visible. When that didn't work I tried the mouse move property property. What is confusing is that the code compiles but then when I go to my form I get a 438 runtime error telling me the object or method isn't supported. I get the same method whethr I use the mousedown or mousemove function. I have also tried both a label and a textbox. I have tried ! instead of the . The only difference was the ! wouldn't compile. Can anyone tell me whats wrong with my code? Here is thr code I tried for both events:
Private Sub cmdFrom_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Me!cmdFrom.GotFocus Then
Me!Label12.Visible = True
Else: Me.Label12.Visible = False
End If
End Sub
Private Sub cmdFrom_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Me.cmdFrom.GotFocus Then
Me!.Text13.Visible = True
Else: Me.Text13.Visible = False
End If
End Sub
Private Sub cmdFrom_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Me!cmdFrom.GotFocus Then
Me!Label12.Visible = True
Else: Me.Label12.Visible = False
End If
End Sub
Private Sub cmdFrom_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Me.cmdFrom.GotFocus Then
Me!.Text13.Visible = True
Else: Me.Text13.Visible = False
End If
End Sub