Hi
I recently inherited an Access split DB and migrated the BE to SQL Server. The Access FE has many queries which in turn call queries, etc., so I decided to write views and stored procedures in SQL to help with the performance hit of the complex queries.
I need to apply a date range filter on the records which is supplied by entry in a pop-up form called from the report's Open event.
I can create a view and use that as a source in a query and apply the entered date range that way, but the view has several tens of thousands of records and there is still a performance hit.
So I wrote a stored procedure using two parameters for the date range.
What I'm not sure about is how to call the SQL stored proc as the RecordSource for the report.
I'm using MSAccess2003 and SQL Server 2005
Any help would be appreciated.
Thanks,
Vic
I recently inherited an Access split DB and migrated the BE to SQL Server. The Access FE has many queries which in turn call queries, etc., so I decided to write views and stored procedures in SQL to help with the performance hit of the complex queries.
I need to apply a date range filter on the records which is supplied by entry in a pop-up form called from the report's Open event.
I can create a view and use that as a source in a query and apply the entered date range that way, but the view has several tens of thousands of records and there is still a performance hit.
So I wrote a stored procedure using two parameters for the date range.
What I'm not sure about is how to call the SQL stored proc as the RecordSource for the report.
I'm using MSAccess2003 and SQL Server 2005
Any help would be appreciated.
Thanks,
Vic