|
-
October 3rd, 1999, 08:14 AM
#1
DT Picker Control
Can i assign a null value to the dt picker control .ie in effect clear the contents of the DT Picker control
-
October 9th, 1999, 09:58 AM
#2
Re: DT Picker Control
You can assign the DTPicker a value of 0. This will work for time but I am not sure about date.
e.g.
DTPicker1.Value = 0#
works when the DTPicker style is set to Short or Long Time.
I'm not sure about how you would assign a similar value to a date.
Hope that helps.
Andrew
-
October 9th, 1999, 04:00 PM
#3
Re: DT Picker Control
You can assign null value (meaning - date is not set), but your picker must have checkbox:
private Sub Form_Click()
DTPicker1.CheckBox = true
DTPicker1.Value = null
End Sub
private Sub DTPicker1_Change()
If Not IsNull(DTPicker1.Value) then
Caption = DTPicker1.Value
else
Caption = "date is not set"
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|