Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resetting an Access Date to Null

Status
Not open for further replies.

Slarti

Programmer
Feb 5, 2003
45
GB
I'm using DAO to connect to an Access database and having trouble emptying a Date/Time field in my table. To begin with the field is empty and that's OK, when I enter a date that too is saved, my problems begin when I try to remove the Date. I've tried restting to Null, vbNull and vbNullChar. Each time I hit an error or the date is reset to 31/12/1899.
 
Hi,

Take a look at the Required Property for the date field. IF it's True, you can ONLY have a valid date in that field.

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244
 
Thanks Skip. I'm out of the office for a day or two but will try this on Friday.

Slarti.
 
Skip, This doesn't mke a difference. I'm using Access '97 is that why? Slarti.
 
Using an SQL Statement this is how you accomplish this:

UPDATE TableName
SET DateField=NULL
WHERE ...
 
Thanks bjd4c. I'll take a look tomorrow in work. Slarti.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top