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

Check for NULL value

Status
Not open for further replies.

RDS2

Technical User
Jun 6, 2003
44
US
Is there a way to to check for a null value in a custom dialog box/pop-up form and assign default values if that is the case? I want to do this as criteria in a query field.
 
Use this as an example of the SQL for a query to populate your popup form:

Select A.*, IIF(IsNull(A.YourFieldName), default value, A.YourFieldName) as YourFieldName
FROM tblYourTableName as A;

Bob Scriver
Want the best answers? See FAQ181-2886
Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???

 
Where [SomeField] Like NZ(Forms!frmA!txtSomeValue,"*")

Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top