base836ball
Active member
- Joined
- May 4, 2005
- Messages
- 31
- Programming Experience
- 1-3
Hey everyone,
I have a datepicker and I want it to write the current date to the database unless I click on it and pick another date. So by default I want the current date to write to the DB. Since today is the 18th I will use that as an example.
If I want the datepicker to use 05/18/2005 then I have to manually click inside the datepicker myself and do it. Even though the picker says the date on the form it wont write to the DB unless I click it. How can automatically make it write the current date to the DB. I tried this
If datepicker = Nothing Then
datepicker = Date.Today()
End If
It works well on the form but in the DB it shows an empty space.
Any help will work
Thanks,
Drew
I have a datepicker and I want it to write the current date to the database unless I click on it and pick another date. So by default I want the current date to write to the DB. Since today is the 18th I will use that as an example.
If I want the datepicker to use 05/18/2005 then I have to manually click inside the datepicker myself and do it. Even though the picker says the date on the form it wont write to the DB unless I click it. How can automatically make it write the current date to the DB. I tried this
If datepicker = Nothing Then
datepicker = Date.Today()
End If
It works well on the form but in the DB it shows an empty space.
Any help will work
Thanks,
Drew