Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I fill a text box with a result from a query.

Status
Not open for further replies.

boogi

Programmer
Aug 30, 2002
9
0
0
IL
Hello. I'm using access 2000.
My problem should be easy to solve but I don't seem to get how.
I have a form with a text box which I want to autofill with a result that I get from a query.
The query works just fine.
I'm trying to do that with the expression builder, but it doesn't work, I always get the error "#name?" in the text box.
How should I do it?
 
Hi!

You can use DLookUp:

=DLookUp("YourField", "YourQuery", "YourCriteria")

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top