R
Robert Neville
I would like to create query with an expression, which places a
pointer to a default value if a field value is null or zero-length .
This query recreates Company and Address links in a relationship
table. Some companies do not have addresses, thus need a default
address reference, called NONE, so the phone and email information may
be place in the relationship table. This reference address has an
AddrID that equals 1.
My first expression failed. Let me know if you have any suggestion.
Here's my idea so far.
IIF(AddrID="",1,AddrID)
IIF(IsNull(AddrID),1,AddrID)
IIF(Nz(AddrID),1,AddrID)
pointer to a default value if a field value is null or zero-length .
This query recreates Company and Address links in a relationship
table. Some companies do not have addresses, thus need a default
address reference, called NONE, so the phone and email information may
be place in the relationship table. This reference address has an
AddrID that equals 1.
My first expression failed. Let me know if you have any suggestion.
Here's my idea so far.
IIF(AddrID="",1,AddrID)
IIF(IsNull(AddrID),1,AddrID)
IIF(Nz(AddrID),1,AddrID)