I have a form, that I am using pop date chooser, it is working, but I am trying to put focus on the textbox, so that when I click the dte, it should show up when I press the use date button
When I am trying to compile I am getting this error.
"Method or data member not found" on this line
.focus is mark in blue.
I do not know why and how to fixed this
Here is all the code for this button
Code:
Private Sub Date1_Click()
Me.DateOut.focus
DoCmd.OpenForm "CalendarPopUp"
Forms!CalendarPopUp!vFormName = "Main"
Forms!CalendarPopUp!vFieldName = "DateOut"
End Sub