DLookUp

M

Manuel

I'm trying to use the function DLookUp so when I enter an
information in a field another field is automatically
entered.
EX: when i enter the job number field in the form, I wasnt
foor job location to be automatically filled. I tried this
but nothing happens:

=DLookUp(" [Job Location] ","[Job Control]"," [Job Number]
= ' " & [Forms]![PO Log Data Entry]![Job Number] & " ' ")

I entered this function in the control source of the text
box, is this the correct way to do it?

help please!
 
R

Rick Brandt

Manuel said:
I'm trying to use the function DLookUp so when I enter an
information in a field another field is automatically
entered.
EX: when i enter the job number field in the form, I wasnt
foor job location to be automatically filled. I tried this
but nothing happens:

=DLookUp(" [Job Location] ","[Job Control]"," [Job Number]
= ' " & [Forms]![PO Log Data Entry]![Job Number] & " ' ")

I entered this function in the control source of the text
box, is this the correct way to do it?

If [Job Number] is actually a numeric value (stored in a numeric field) then you need
to lose the single quotes. Otherwise it looks good to me.
 

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

Top