A family of Microsoft relational database management systems designed for ease of use.
It would be (moved your Nz as it didn't make any sense as used):
Nz(DLookup ("[" & strField1 & "]", "Table1", "[" & strField2 & "] = '" & str1 & "'"))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I don’t see explanation by google about using variable as field name in dlookup function, such as
dlookup (“nz([field1])”,”Table1”,”[field2]”=“ & “‘“ & str1 & “‘“)
how can I use variable strField1, strField2 in place of field1 and field2 above
pls help
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
It would be (moved your Nz as it didn't make any sense as used):
Nz(DLookup ("[" & strField1 & "]", "Table1", "[" & strField2 & "] = '" & str1 & "'"))
Hi,
try with:
dlookup (nz([strField1]), strField2, ”[field2] ='“ & str1 & “‘“)
Ciao Mimmo