I need to add a calendar control to a MS ACCESS 2000 Form.
I need to be able to click on a button and the calendar will pop up. After I click on the date I wanted from teh calendar, I need to add that date tothe date field.
How would I do that?
I came up with this code. It works fine for MS Access 97 but not for MS access 2000. What am i doing wrong???
Dim frmCal As Form ' calendar form
Dim ctlD As Control ' date control on this form
Set ctlD = Me!DoB
DoCmd.OpenForm "frmCalendar", , , , , acHidden
Set frmCal = Forms("frmCalendar"
With frmCal
Set .DateControl = ctlD
.InitialDate = ctlD.Value
.Visible = True
End With
I get the error "Application-Defined or Object-Defined Error"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.