Unselecting a Date from a Pop-Up Calendar

CassandraB

Registered User.
Local time
Today, 10:55
Joined
Feb 23, 2003
Messages
54
Does anybody know how to unselect a date (so that nothing is selected) in a pop-up calendar? Appreciate anyones help, thanks!
 
Me.txtMyDateField = Null

or

If Not Isnull (Me!txtMyDateField) then
Me.txtMyDateField = Null
Else
Me.txtMyDateField = Me.NameOfMyCalendar.Value
End If

You should use these on the On_Click event of the Calendar control.

The second version will only set the date to Null if the field you have passed the date to is populated, else if it has no data, it will populate it.
 

Users who are viewing this thread

Back
Top Bottom