Hi
I have a pay report which accepts two input parameters - a 'from date' & a 'to date'. This works fine, the first part of the report shows the employee's particulars and the date range under scrutiny.
I have added a subreport which shows a series of figures broken down per day which is linked to the main report by employee no. I am having problems making the subreport limit the information it shows to the date range shown on the main form. I'm thinking I need to be able to modify the SELECT statement in the RecordSource property of the subreport with the input parameters from the main report eg
SELECT * FROM Pay WHERE PayDate > ? AND PayDate < ?
Its the ? bit I'm having trouble with, how do I get the dates into the query?! Anyone know how to do this or am I using the subreport incorrectly?
I have a pay report which accepts two input parameters - a 'from date' & a 'to date'. This works fine, the first part of the report shows the employee's particulars and the date range under scrutiny.
I have added a subreport which shows a series of figures broken down per day which is linked to the main report by employee no. I am having problems making the subreport limit the information it shows to the date range shown on the main form. I'm thinking I need to be able to modify the SELECT statement in the RecordSource property of the subreport with the input parameters from the main report eg
SELECT * FROM Pay WHERE PayDate > ? AND PayDate < ?
Its the ? bit I'm having trouble with, how do I get the dates into the query?! Anyone know how to do this or am I using the subreport incorrectly?