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

Query pull variable from field on form

Status
Not open for further replies.

MrsTFB

MIS
Oct 3, 2000
307
US
I have an Access (2000) database that has a query ran from a form. I want the value that the query asks for (Part Number) to be whatever value is in PartNumber field on the form. I don't want the user to have to enter the part number for the query to run.

I know it's possible, just don't know the code to make it work.

Thanks for help,
MrsTFB in Tennessee
 
Just have your query reference
Code:
[forms]![YourFormName]![YourControlName]

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top