I suspect James is right. The workaround, I think, would be to place a
command button with a calendar image on the form, have the DP invisible, and
in the OnClick event of the button make the DP visible.
What I do for this type of thing is place a DatePicker control on the form,
positioned as you like and set it's Visible Property to NO.
Then, using the DoubleClick property of your text box, have the DatePicker
"popup" for date selection. You'll need to replace YourDatePickerName and
YourTextBoxName with the actual names of your DatePicker and text box.
Private Sub YourTextBoxName_DblClick(Cancel As Integer)
YourDatePickerName.Visible = True
End Sub
Private Sub Form_Load()
YourDatePickerName.Value = Date
End Sub
Private Sub YourDatePickerName_Click()
YourTextBoxName.Value = YourDatePickerName.Value
YourTextBoxName.SetFocus
YourDatePickerName.Visible = False
End Sub
Now, all your user has to do is DoubleClick on the text box and up pops the
DatePicker! When the user clicks on the date, the DatePicker disappears and
the text box is populated with the date.
Linq
--
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Message posted via AccessMonster.com