Load Calendar value with current date on form open and change with user selection

I have a form with an ActiveX Calendar12 object. In control source for the object I have..."=Date()". When my form opens the calendar object loads with the current date like I want it to. I want the user to be able to pick another date and have the value of the object be this new date. As it stands now you cannot select another date and the value is always the current date.
Thanks for the help!
IronDriverAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mbizupCommented:
remove the = Date() from the control source.
Put Date() into the Default value of the field, or of the calendar control itself.

The user should then be able to select a date.
dan_vellaCommented:
If you have no luck finding the default value for the calendar control, remove the control source AND use an On Open Event procedure for the form, this is how I have got aroung this in the past:

Private Sub Form_Open(Cancel As Integer)

Me.Calendar0.Value = Date

End Sub

dan_vellaCommented:
sorry that should be:Private Sub Form_Open(Cancel As Integer)

Me.Calendar0.Value = Date()

End Sub
IronDriverAuthor Commented:
Curious thing here...I know both capricorn1 and dan's suggestions are effective. I looked at cap's file and is a nice solution. I tried to use dan's code in my current project and cannot get it to work. Yet if I open a new db and build a simple form with just the calendar object and the code it works exactly as I would like. I obviously have something causing the issue in my VB code but haven't found it yet.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.