txgeekgirl
Registered User.
- Local time
- Yesterday, 22:47
- Joined
- Jul 31, 2008
- Messages
- 187
Good Morning. I am trying to tackle a DLookUp with double critieria.
Me.MPOIAuditItemsTB = DLookup("AuditItemsID", "FindingsElements", "[Element]= '" & Me.MPOIElementTB & "'" And "[AuditID]=" & Me.MPOIAuditTypeTB)
I can get it to work before the And and if I strip it out, after the AND, but not together. What am I missing???
Me.MPOIAuditItemsTB = DLookup("AuditItemsID", "FindingsElements", "[Element]= '" & Me.MPOIElementTB & "'" And "[AuditID]=" & Me.MPOIAuditTypeTB)
I can get it to work before the And and if I strip it out, after the AND, but not together. What am I missing???