Sep 12, 2003 #1 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
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
Sep 12, 2003 #2 SQLBI IS-IT--Management Jul 25, 2003 988 GB 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 http://www.ljm-analysis.co.uk Upvote 0 Downvote
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 http://www.ljm-analysis.co.uk