I am currently programming an application using Access 2003 ADP/SQL2K. I want to use a simple stored procedure to return records to a report. The only way I found to do this is to create an ADO (v2.7) recordset in the Open event of the report, then set the recordset property to the recordset I want.
This works great for reports that do not have any grouped headers or footers. However, grouped reports are another story. When adding a grouped header or footer to the report, none of the data is displayed and the header field, which could be previously displayed, cannot be found. In other words, you get nothing.
I tested this method by printing out the recordset to the immediate window, and the data is present in the recordset. I have tried changing the locks, the cursor type, etc...but cannot get this to work. This is not a problem that has a lot of coverage on the web.
In case anyone suggests using views, I am trying to use stored procedures for security purposes. What I am finding, much to my suprise and horror, is that Access reports just don't play well with SQL Stored Procedures. Anyone have any ideas?
Thanks.
This works great for reports that do not have any grouped headers or footers. However, grouped reports are another story. When adding a grouped header or footer to the report, none of the data is displayed and the header field, which could be previously displayed, cannot be found. In other words, you get nothing.
I tested this method by printing out the recordset to the immediate window, and the data is present in the recordset. I have tried changing the locks, the cursor type, etc...but cannot get this to work. This is not a problem that has a lot of coverage on the web.
In case anyone suggests using views, I am trying to use stored procedures for security purposes. What I am finding, much to my suprise and horror, is that Access reports just don't play well with SQL Stored Procedures. Anyone have any ideas?
Thanks.