Error using DLookup to retrieve from another form

ktimov1

Registered User.
Local time
Today, 13:22
Joined
May 18, 2010
Messages
19
I have two forms (form1, form2). Form1 has a combo box named "Owner" which lists locations. I want a textbox in form2 to update with whichever location the user chooses from form1.

Im using the DLookup function:
=DLookup("[location]", "tblAddress", "[location] =" & Forms![form1]!Owner)

Any ideas on why I get an error?
 
It may help if you tell us what type of error you are getting.
 
All the textbox shows is #Error
 
Is the form that has the control open? It must be open to get the data.
 
Oh jeez, I didn't think about that..:o. I guess it's too early for me to be messing around with databases.

Thanks a lot!
 

Users who are viewing this thread

Back
Top Bottom