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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying query results in a text box. How do you do this? 2

Status
Not open for further replies.

Dherrera

Programmer
Mar 22, 2004
86
US
i cant get the results of a query to display in a text box. the query only has one record and one field in it but it wont display. ive tried setting the default value of the textbox to value of the query but the txtbox shows #NAME! in it. ive tried "ME.txtCULevel= qryUserLevel.userLevel" but i get the same result.

can someone please help me out here.
 
Set the ControlSource property of txtCULevel to something like this:
=DLookUp("userLevel", "qryUserLevel")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
beautiful!!!

thanks PHV that worked just as i needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top