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!

creating a query

Status
Not open for further replies.

GazzaG

Technical User
Mar 15, 2003
19
GB
Help please
I have a table TblFireSafetyInspection and within that a field called ReportID, i would like to create a button on a form that when the user clicks on it it will ask them to select the ReportID and that particular report will open with the information, what do I need to put on the query to make this happen

thank you
 
presumably your reportid is unique in table?

then in your query, you would need to put something like:

SELECT * FROM tblName WHERE reportid = "reference to reportid selected"

the reference to reportid can either be a control on a form where you put the report id once a user selects it, or a string that's been filled with the reportid when you click on the command button
 
Thanks crowley but i just put [which report ID] and that did the trick i was looking for.

thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top