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

help with #error in a field

Status
Not open for further replies.

mrsbean

Technical User
Jul 14, 2004
203
US
The following code is present in a textbox in an Access form. I don't have the syntax right. Sometimes, the dMaxTimeStamp is null. When it is null, there is an error in the text box. What can I do to get rid of the error? I would like it to show a value or to leave it blank.

MrsBean


Code:
=IIf([dMaxTimeStamp]="#Error"," ",[dMaxTimeStamp])
 
Perhaps this ?
=Nz([dMaxTimeStamp], " ")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top