Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Blank Date Field
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 28th May 20:23
andy
External User
 
Posts: 1
Default Blank Date Field



I am using an ASP page to update/create records in
Access. Here is the problem - if I set a field to be a
Date field in the DB, (yes the # instead of ' is used in
the code...) it doesn't work if the field is left blank.
If I type in a date, it does work.

I tried setting a default value in Access, but that
didn't work either.

Help!
  Reply With Quote


  sponsored links


2 28th May 20:23
douglas j. steele
External User
 
Posts: 1
Default Blank Date Field



Dates are stored internally as floating point numbers, so blank isn't a
valid value for a date.

You can make sure that your date fields aren't required, and then just not
provide a value. That way, it'll be stored as Null.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)
  Reply With Quote


  sponsored links


3 28th May 20:24
andy
External User
 
Posts: 1
Default Blank Date Field


I am using an ASP page to update/create records in
Access. Here is the problem - if I set a field to be a
Date field in the DB, (yes the # instead of ' is used in
the code...) it doesn't work if the field is left blank.
If I type in a date, it does work.

I tried setting a default value in Access, but that
didn't work either.

Help!
  Reply With Quote
4 28th May 20:24
douglas j. steele
External User
 
Posts: 1
Default Blank Date Field


Dates are stored internally as floating point numbers, so blank isn't a
valid value for a date.

You can make sure that your date fields aren't required, and then just not
provide a value. That way, it'll be stored as Null.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666