Guest_imported
New member
- Jan 1, 1970
- 0
I have a database where I will be using several different forms. On each of the forms I will need to have a calendar that users can select the date. Instead of having several calendar controls I want to have one calander form that opens allows them to select the date and closes returning the date they selected. I want to create a function that I can call. The problem is I can not decipher how to get the function to wait for the user to select the date from the calander form.
Function Selectdate() As Date
DoCmd.Openform "Calander"
'here is where I am lost
Selectdate = Forms!Calander!Calander01.value
End Function
I am open to suggestions on the best way to accomplish this task
Function Selectdate() As Date
DoCmd.Openform "Calander"
'here is where I am lost
Selectdate = Forms!Calander!Calander01.value
End Function
I am open to suggestions on the best way to accomplish this task