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

forms and sql in access

Status
Not open for further replies.

shanemjo

Programmer
Aug 13, 2002
4
FR
i have set up my form in access to select data in a date range from a table and use the data in that range t generate a report.

How can i alter the SQL in a query from a form. can anyone help...

thnk u

Shane
 
Shane,

You can use Parameters in your query to reference data from a control in a form.

EG.

SELECT *
FROM tblTable
WHERE Field = [Forms]![frmYourForm]![txtYourTextBox]

Hope this helps.

Leigh Moore
LJM Analysis Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top