Dlookup Syntax

G

Guest

Hi,

i am trying to do a dlookup in Access 2002 but keep getting the
operand/operator error, this is my formula can anyone pls help....

=Dlookup ("[Support Area]","[ Lima Caller Mapping Tables]","[System ID]="
&Forms!Form B_W Master Data!MachineID)

pls can someone help...
 
G

Guest

Because you have spaces in your form name you need to put square brackets
around Forms![Form B_W Master Data]!MachineID
 
G

Guest

Hi,

I have done that but am still getting the same error, could it be the
spacing???

Dennis said:
Because you have spaces in your form name you need to put square brackets
around Forms![Form B_W Master Data]!MachineID

Manveer said:
Hi,

i am trying to do a dlookup in Access 2002 but keep getting the
operand/operator error, this is my formula can anyone pls help....

=Dlookup ("[Support Area]","[ Lima Caller Mapping Tables]","[System ID]="
&Forms!Form B_W Master Data!MachineID)

pls can someone help...
 
G

Guest

Take out the space after your square bracket & before Lima .... and put a
space after the & and before Forms![Form .....
This statement will only work as well if [System ID] and [Machine ID] are
both numeric.

manveer said:
Hi,

I have done that but am still getting the same error, could it be the
spacing???

Dennis said:
Because you have spaces in your form name you need to put square brackets
around Forms![Form B_W Master Data]!MachineID

Manveer said:
Hi,

i am trying to do a dlookup in Access 2002 but keep getting the
operand/operator error, this is my formula can anyone pls help....

=Dlookup ("[Support Area]","[ Lima Caller Mapping Tables]","[System ID]="
&Forms!Form B_W Master Data!MachineID)

pls can someone help...
 
G

Guest

done that...still not working...

Dennis said:
Take out the space after your square bracket & before Lima .... and put a
space after the & and before Forms![Form .....
This statement will only work as well if [System ID] and [Machine ID] are
both numeric.

manveer said:
Hi,

I have done that but am still getting the same error, could it be the
spacing???

Dennis said:
Because you have spaces in your form name you need to put square brackets
around Forms![Form B_W Master Data]!MachineID

:

Hi,

i am trying to do a dlookup in Access 2002 but keep getting the
operand/operator error, this is my formula can anyone pls help....

=Dlookup ("[Support Area]","[ Lima Caller Mapping Tables]","[System ID]="
&Forms!Form B_W Master Data!MachineID)

pls can someone help...
 

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

dlookup 2
DLookup Help 4
DLookup Syntex error it is killing me 7
dlookup and string for criteria 5
dlookup using variable as criteria 1
Multiple Criteria in DLOOKUP 2
DLookup Syntax Error 3
DLookup 4

Top