In reply to Garry Smith: It's been a year but in case someone else looks at this and wonders themselves, the answer you were given was almost right. You DO need single quotes around the value of txtGetItemNum and you would format it the way Richard showed. But you do NOT need quotes around the control name. Quotes go around text VALUES, not the controls and variables that hold the values. So the last part of the DLookup would look like this: "GalleryItemID= '" & txtGetItemNum & "'")
Reply from Alex Hedley:
Thanks for pointing it out. (I think it was a typo/copy and paste job)
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 10.