Here's how I would do that.
Make textbox on your form that has the visible property set to no.
Call it txtHidden1.
And lets just say your calendar is named Calendar1.
You probably have several date text boxes. Lets use this as an
example:
txtBeginDate
txtEndDate
Now, behind txtBeginDate Click Event, put this code:
Me.txtHidden1.Value = Me.txtBeginDate
Me.Calendar1.Left = 2
Me.Calendar1.Top = 3
Do the same for txtEndDate using Me.txtEndDate
On your Calendar's click event you should put: txtHidden1.value = ""
This worked for me. You will need to play with the Left and the Top
values to get it positioned where you want it. You can use decimals.
I use this code to make the calendar visible. I have it visible
property set to know in design view and set it back to false on a click
event.
Me.Calendar1.Visible = True
Me.Calendar1.Setfocus
Good Luck.
Let me know if it works or doesn't work
harlan dot koehn <at> gmail dot com