HOW CAN I ADD A "N/A TO A DATE FIELD

  • Thread starter Thread starter Guest
  • Start date Start date
You can leave the field as a null and in your query use an IIF statement so
that if it is null then display N/A.
 
IN ACCESS CAN I USE "N/A" IN A DATE FIELD?

No. A Date is stored as a number, a precise moment of time.

You can DISPLAY N/A for NULL dates by setting the control source of a
textbox to something like

=NZ([datefield], "N/A")

but this will not be updateable.

Please ignore the spammer posting rubbish about 2004.

John W. Vinson[MVP]
 
John said:
No. A Date is stored as a number

Again, that a DATETIME value is stored as a number is irrelevant and
potentially counterproductive e.g. it could lead to the erroneous
assumption that a DATETIME value of 0 could be used to signify a 'N/A'
date.

Jamie.

--
 

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

Back
Top