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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want default date to be N/A

Status
Not open for further replies.

DanEaton

Technical User
Jun 24, 2002
60
CA
I am currently creating a catalog database, and filing all of the catalogs. I have a report that creates labels for each catalog as it is entered. The labels have two different characteristics: catalog date, filed under. Catalog Date is a field on tblCatalog that is not required to be entered. I want it to set to a default string "N/A" (for obvious reasons) if nothing is entered. Is it possible to write some simple code to overwrite the input mask? It is set to date/time. The data entry form is called frmCatalogDataEntry.

Thanks in advance.

Dan Eaton
 
There's no code that will overwrite that? Is there anyway I could get N/A on the report but not stored in the table? I don't care if it gets stored as long as it is on the labels. Anyone?

Dan Eaton
 
I guess you could use the Nz function, but this will require the user not submitting a value into the date field.

Your report controlsource for the date field would need to be something like:

=Nz("[Catalog Date]", "N/A")


I think that will assign N/A to records where the catalog date is null... James Goodman
 
I used the conrol source method but instead used
=IIf(IsNull([CatDate]),"N/A",[CatDate])
Thanks for setting me on the right track!

Dan Eaton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top