matt beamish
Registered User.
- Local time
- Today, 19:07
- Joined
- Sep 21, 2000
- Messages
- 211
Hello forum people.
Please can someone help me with a Dlookup - I've spent a few hours on it now, and I am going around in circles.
My criteria are [FullAccession] which is a string, and [Context] which is an integer.
This works:
=DLookUp("[Title]","[Q_DiggitContexts]","[ContextInt] = [Context]")
And this works
=DLookUp("[Title]","[Q_DiggitContexts]","[FullAccession]= " & Chr(34) & [FullAccessioncntrl] & Chr(34))
But this doesn't
=DLookUp("[Title]","[Q_DiggitContexts]","([FullAccession]= " & Chr(34) & [FullAccessioncntrl] & Chr(34) And "[ContextInt] = [Context]")
I've tried adding brackets but not correctly as get an error
Any help and explanation of where I am going wrong, as ever, appreciated.
thanks
Please can someone help me with a Dlookup - I've spent a few hours on it now, and I am going around in circles.
My criteria are [FullAccession] which is a string, and [Context] which is an integer.
This works:
=DLookUp("[Title]","[Q_DiggitContexts]","[ContextInt] = [Context]")
And this works
=DLookUp("[Title]","[Q_DiggitContexts]","[FullAccession]= " & Chr(34) & [FullAccessioncntrl] & Chr(34))
But this doesn't
=DLookUp("[Title]","[Q_DiggitContexts]","([FullAccession]= " & Chr(34) & [FullAccessioncntrl] & Chr(34) And "[ContextInt] = [Context]")
I've tried adding brackets but not correctly as get an error
Any help and explanation of where I am going wrong, as ever, appreciated.
thanks