Re: Null vs. nothing



wjdennis@xxxxxxx wrote:
I'm looking at a table with two date/time columns in it. One colulmn
has its Default Value set to Null, the other has nothing in the
Default Value entry. What is the difference between these two
Default Values?

As default value settings (on a DateTime field) there is no difference
whatsoever. DateTime fields can only contain a proper date entry or a Null. In
the case of NO entry in the DefaultValue property the field will default to Null
if Nulls are allowed. Entering "Null" as the Default Value property might make
that more explicit, but the result is the same.

The only time that a Default Value property of "Null" should make a difference
is on a Text field that also allows zero-length-strings.


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


.



Relevant Pages

  • Re: Combo Box Description
    ... For example, one entry might look like this: ... Your expression is fine except that the column numbering starts with zero so ... Rick Brandt, Microsoft Access MVP ...
    (microsoft.public.access.formscoding)
  • Re: Calculating separate date and time fields
    ... same as the db entry it has to be separate. ... Same with the response, ... So you have one DateTime field for when the record was created (if you need ...
    (microsoft.public.access.gettingstarted)
  • Date losing time after retrieval with SQL
    ... I have put the current datetime as a DATETIME field in a mysql database ... using NOWin a sql query. ... The databse shows the entry as 2004-05-05 ...
    (comp.lang.java.programmer)
  • DateTime() Q.
    ... I have a field that has the DATETIMEof the entry. ... How do I sql the ... datetime field for just the date and not the time portion? ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Fix so FindFirst works with Caps Lock On.
    ... Doug Steele, Microsoft Access MVP ... (no private e-mails, please) ... I'm talking about typing an entry that exists in the list. ...
    (microsoft.public.access.formscoding)