For 2003, is there a way to have a little calendar pop up when a date is required for a field? How do you create/modify?
Access 2003 - Calendar
Collapse
X
-
Tags: None
-
If you'd like to only have the calendar appear when you need to pick a date, you can use this routine.
YourTextBoxName is the name of the box that will hold the date
YourCalendarNam e is the name of your calendar.
First, place the calendar where you want it to appear on the form.
Next, select the calendar and goto Properties--Format and set Visible = No
Then place this code in the form's code module:
[CODE=vb]Private Sub Form_Load()
YourCalendarNam e = Date
End Sub
Private Sub YourTextBoxName _DblClick(Cance l As Integer)
YourCalendarNam e.Visible = True
End Sub
Private Sub YourCalendarNam e_Click()
YourTextBoxName = YourCalendarNam e
YourTextBoxName .SetFocus
YourCalendarNam e.Visible = False
End Sub
[/CODE]
Now, when your user DoubleClicks on the textbox where the date will go, the calendar will appear. The date is picked, and the calendar disappears!
Welcome to TheScripts!
Linq ;0)> -
-
While there are calendars available on line, they require what I'm guessing is a little more experience in coding than you have at this point in time. The simplest way is to go into your form's Design View, on the toolbar goto Insert - ActiveX Control and scroll down to Calendar Control then click on OK. The calendar should now be on your form. Move it where you will like any other control.
Linq ;0)>Comment
-
Actually Linq,Originally posted by missinglinqWhile there are calendars available on line, they require what I'm guessing is a little more experience in coding than you have at this point in time. The simplest way is to go into your form's Design View, on the toolbar goto Insert - ActiveX Control and scroll down to Calendar Control then click on OK. The calendar should now be on your form. Move it where you will like any other control.
Linq ;0)>
It's probably easier to use Allen Brownes calendar as the ActiveX one creates so many problems.
Mary :)Comment
-
Comment