accessrookie2
Registered User.
- Local time
- Today, 08:19
- Joined
- Jul 23, 2009
- Messages
- 16
Someone helped me yesturday put together this code that works:
DLookup([partColumnNumber], "ExcelTable", [zColumnNumber] & " = '" & zNumber & "'")
all the variables are strings if that matters. I need to add another condition in the criteria. I want it to return the result where the zcolumnNumber = zNumber And the topBottomColumnNumber = zLetter
I've tried this code below but it gives me a data mismatch. I'm sure I have a quote in the wrong place but I cannot figure it out, I've either gotton an error or it returns a null value (when there is a match in the table it should be returning)
DLookup([partColumnNumber], "ExcelTable", [zColumnNumber] & " = '" & zNumber & "'" And [topBottomColumnNumber] & " = '" & zLetter & "'")
If anyone can tell me what I need to fix it would be much appreciated, thanks.
DLookup([partColumnNumber], "ExcelTable", [zColumnNumber] & " = '" & zNumber & "'")
all the variables are strings if that matters. I need to add another condition in the criteria. I want it to return the result where the zcolumnNumber = zNumber And the topBottomColumnNumber = zLetter
I've tried this code below but it gives me a data mismatch. I'm sure I have a quote in the wrong place but I cannot figure it out, I've either gotton an error or it returns a null value (when there is a match in the table it should be returning)
DLookup([partColumnNumber], "ExcelTable", [zColumnNumber] & " = '" & zNumber & "'" And [topBottomColumnNumber] & " = '" & zLetter & "'")
If anyone can tell me what I need to fix it would be much appreciated, thanks.