David44Coder
Member
- Local time
- Tomorrow, 01:39
- Joined
- May 20, 2022
- Messages
- 137
I'm wanting to build the Where clause for Dlookup and Access continues to shut down as I attempt to compose the line.
The clause I want is
Dac =1446 And aName= "A Story" and (Nz([Location],"")=""
I've Dimmed c$ as chr$(34) and have (which is failing)
Any idea what's wrong ?
The clause I want is
Dac =1446 And aName= "A Story" and (Nz([Location],"")=""
I've Dimmed c$ as chr$(34) and have (which is failing)
Code:
x = nz(DLookup("Location", "Table3", "Dac =" & MyID() & " And aName= " & c$ & aName & c$ & " and (Nz([Location]," & c$ & c$ & ")=" & c$ & c$))