S
shanesullaway via AccessMonster.com
I need two criteria's for my DLookup but they are coming from two different
tables. I need the Address from the Work table and AddrDiscp not equalling
"Home" in the Address table or AddrDiscp equalling empty or Null, either way.
When I try the below code I get the "Type Mismatch" error. Any help would be
appreciated.
Code:
------------------------------------------------------------------------------
--
rs![Street] = Nz(DLookup("Address", "Work", "CustomersID= " & rs![CustomersID]
And DLookup("AddrDiscp", "Address", "AddrDiscp <> '" & "Home" & "'")), Null)
------------------------------------------------------------------------------
tables. I need the Address from the Work table and AddrDiscp not equalling
"Home" in the Address table or AddrDiscp equalling empty or Null, either way.
When I try the below code I get the "Type Mismatch" error. Any help would be
appreciated.
Code:
------------------------------------------------------------------------------
--
rs![Street] = Nz(DLookup("Address", "Work", "CustomersID= " & rs![CustomersID]
And DLookup("AddrDiscp", "Address", "AddrDiscp <> '" & "Home" & "'")), Null)
------------------------------------------------------------------------------