C CassandraB Registered User. Local time Today, 11:06 Joined Feb 23, 2003 Messages 54 Aug 1, 2003 #1 Does anybody know how to unselect a date (so that nothing is selected) in a pop-up calendar? Appreciate anyones help, thanks!
Does anybody know how to unselect a date (so that nothing is selected) in a pop-up calendar? Appreciate anyones help, thanks!
M MM-UK Registered User. Local time Today, 11:06 Joined Jun 24, 2003 Messages 10 Aug 5, 2003 #2 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.
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.