Yes this is possible. On your tool bar under more controls button, there is a Calendar control in the list. Add this control to a new form. On the form that has your date field, create a control button that will open the calendar form. On the calendar Updated event, add this code
Code:
__________________________
Private Sub ActiveXCtl0_Updated(Code As Integer)
Dim Frm as Form
Dim TxtStr As TextBox
Set Frm = Forms!Your_Form_Name_Here
Set TxtStr = Frm.Your_Text_Box_Name_Here
TxtStr = Me.CalendarName.Value
End Sub
___________________________
This will set your text box to the value on the calendar everytime the user changes the date. The calendar opens to the current date by default. Hope this helps
Hi!
I´ve been busy with other stuff, now I´m tryin again with the calendar control 8.0
But as fast as I draw the rectangle Access compains withh an error telling me that Access is shutting down and you know "Do you want to sen a rapport to Microsoft...."
I´ve heard that there is some kind of fix for this problem, does anyone know?
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.