Calendar Control - Current Date

R

Rosemary

I have created a pop-up form with the Calendar Control on
it. It is not being used for anything yet other than
viewing. What I would like to have it do, however, is
have the current date selected when the calendar form pops
up. How can I do this?

Thanks,
 
A

AlCamp

Rosemary,
On the OnCurrent event of your pop-up form, place this code...
Private Sub Form_Current()
YourCalendarName.Value = Date
End Sub
hth
Al Camp
 
R

Rosemary

Thanks!!
-----Original Message-----
Rosemary,
On the OnCurrent event of your pop-up form, place this code...
Private Sub Form_Current()
YourCalendarName.Value = Date
End Sub
hth
Al Camp




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top