Dlookup Syntax

M

Manveer

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...
 
D

Dennis

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

manveer

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...
 
D

Dennis

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...
 
M

manveer

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


Top