sindhuja
10-17-2008, 05:06 PM
Hi All,
Need an help ..!
Designed a form named frmdate from where i need to select the date range to generate reports.
Have two textbox txtstartdate and txtenddate and a calendar ctrl named cal1 an option button.
i have selected option button, the calendar value will be displayed in the corresponding text box based on the option box selection.
Now depending upon the date range in the two textbox i need to generate the report. The two text box values will be the parameter to the query.
Query :
select * from tblfeeds where DateofEntry Between [forms]![frmdate]![txtstartdate] and [forms]![frmdate]![txtenddate]
If i run this query it works. But i run the query via forms its not working for me... am not sure how to assign the textbox values from forms to the query.
Excepting help regarding this...
Also attached sample database for the reference.
-Sindhuja
Need an help ..!
Designed a form named frmdate from where i need to select the date range to generate reports.
Have two textbox txtstartdate and txtenddate and a calendar ctrl named cal1 an option button.
i have selected option button, the calendar value will be displayed in the corresponding text box based on the option box selection.
Now depending upon the date range in the two textbox i need to generate the report. The two text box values will be the parameter to the query.
Query :
select * from tblfeeds where DateofEntry Between [forms]![frmdate]![txtstartdate] and [forms]![frmdate]![txtenddate]
If i run this query it works. But i run the query via forms its not working for me... am not sure how to assign the textbox values from forms to the query.
Excepting help regarding this...
Also attached sample database for the reference.
-Sindhuja