Install the calendar control on a popup form named PFrmCalendar. Name the
calendar control My Calendar. I will assume the name of the Date field on
your form is MyDate.
Put the following code in the Click event of the calendar control:
Me.Visible = False
Put the following code in the click event of a button on your form:
DoCmd.OpenForm "PFrmCalendar",,,,,acDialog
Me!MyDate = Forms!PFrmCalendar!MyCalendar.Value
DoCmd.Close acForm, "PFrmCalendar"
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1125 users have come to me from the newsgroups requesting help
(E-Mail Removed)
"Joe" <(E-Mail Removed)> wrote in message
news:47B183B7-D180-44D3-9E05-(E-Mail Removed)...
>I would like to extract the day from the calendar control to a form.
>
>