Dlookup

G

Guest

I have the following Dlookup with works fine:

DLookUp("TableAParts","EAU","[PARTNO]=Forms![NewPartInputfrm].PartNo")

I need to add the following criteria: AND where [REFPARTNO] in TableAParts =
Forms![NewPartInputfrm].RefPartNo")? Thank you.

Alex
 
S

Steve Schapel

Alex,

The structure of your DLookup function would imply that TableAParts is
the name of a field. So what does " [REFPARTNO] in TableAParts" mean.
Or, do you actually mean that your original DLookup is like this?...
DLookUp("[EAU]","TableAParts","[PARTNO]=Forms![NewPartInputfrm].PartNo")
If so, expand like this...
DLookUp("[EAU]","TableAParts","[PARTNO]=Forms![NewPartInputfrm].PartNo
AND [REFPARTNO]=Forms![NewPartInputfrm].RefPartNo")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top