hello, i have a report that uses ado code to select some of its data.
currently the query in the ado module just selects all records from the table "tblEmpJob". This table contains a field "fldDate"
What i need is for only records to be selected between dates
i have created a form with two textboxes "startDate" and "EndDate" i need these to be the parameters in the ado query. I have been told i need to use a datatype "parameter" or something in the ado to be able to use these paramters.
I have been trying to refer to the textboxes directly within the sql string but keep running into errors. Im just wondering if any one could help me out, either with advice or a bit of sample code of how i would go about doing this.
Any help would be greatly appreciated as i am getting desperate to solve this problem.
Thanks!
currently the query in the ado module just selects all records from the table "tblEmpJob". This table contains a field "fldDate"
What i need is for only records to be selected between dates
i have created a form with two textboxes "startDate" and "EndDate" i need these to be the parameters in the ado query. I have been told i need to use a datatype "parameter" or something in the ado to be able to use these paramters.
I have been trying to refer to the textboxes directly within the sql string but keep running into errors. Im just wondering if any one could help me out, either with advice or a bit of sample code of how i would go about doing this.
Any help would be greatly appreciated as i am getting desperate to solve this problem.
Thanks!