Numpty
on t'internet
- Local time
- Today, 21:20
- Joined
- Apr 11, 2003
- Messages
- 60
Hi Guys,
Got a report problem bugging now which I can't sort and hoping someone here could point me in the right direction.
I have a report which is based upon a query. When I open the report from the Database window it runs fine - showing all the records held that fulfill the query criteria.
I have a simple form to allow the user to select dates to filter the results to be between the given dates. Now basically it will not filter for the dates - when putting in some dates it removes all the results (blank report) and other dates it displays all records (including those outside of the dates entered).
This is the code I'm using in the OnClick event....
DoCmd.OpenReport "rptSupplyCover", acViewPreview, , "[CommencementDate] Between #" & _
[Forms]![SupplyReportSearch]![FromDate] & "# And # " & [Forms]![SupplyReportSearch]![ToDate] & "#"
Hopefully someone can see where I'm going wrong or point me in the right direction.
Your my only hope
Got a report problem bugging now which I can't sort and hoping someone here could point me in the right direction.
I have a report which is based upon a query. When I open the report from the Database window it runs fine - showing all the records held that fulfill the query criteria.
I have a simple form to allow the user to select dates to filter the results to be between the given dates. Now basically it will not filter for the dates - when putting in some dates it removes all the results (blank report) and other dates it displays all records (including those outside of the dates entered).
This is the code I'm using in the OnClick event....
DoCmd.OpenReport "rptSupplyCover", acViewPreview, , "[CommencementDate] Between #" & _
[Forms]![SupplyReportSearch]![FromDate] & "# And # " & [Forms]![SupplyReportSearch]![ToDate] & "#"
Hopefully someone can see where I'm going wrong or point me in the right direction.
Your my only hope