Date Defaulting in Data Field

G

Guest

I have an unbound date field in a form (short date). Sometimes, the date in
the form is Empty / Null. When I save to the underlying table, my date
variable is set to 12:00:00 instead of null or empty. The forms field
evaluates to null. The recorded date in the underlying table is saved as
12/30/1899.

1. Why is this?
2. How can I save "nothing" in the date field of the table?

Thanks

Ross
 
J

Jeff Boyce

Ross

Check the table definition ... that date/time field probably has a default
value of 0 (which translates in Access date/time parlance to 12/30/1899 @
12:00).
 
J

Jeff Boyce

Ross

A value of "0" translates to the date/time you mentioned. Somehow a zero
ended up in there.

Did you check the default on the form, or in the table definition?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top