A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Report with ADODB.Recordset



 
 
Thread Tools Display Modes
  #1  
Old May 14th, 2007, 03:28 PM posted to microsoft.public.access.reports
RW
external usenet poster
 
Posts: 69
Default Report with ADODB.Recordset

How can I use a ADODB.Recordset as datasource of a report.
The data is in a SQL Server.
I have no problem connecting to the SQL Server and I can use the data in
Forms or in any SELECT, UPDATE, DELETE and INSERT SQL statements without any
problem.

Only with reports it doesn't work.

In the Report_Open event of the report I get a 2593 Runtime-error:
This function is not available in a MDB
at the commandline: Set Me.Recordset = MyRecordset
--
RW
  #2  
Old May 14th, 2007, 06:12 PM posted to microsoft.public.access.reports
Maurice
external usenet poster
 
Posts: 1,585
Default Report with ADODB.Recordset

Also posted this in de 'dutch' NG -- replied there...

Remove the me. in front of the recordset

Maurice

"RW" wrote:

How can I use a ADODB.Recordset as datasource of a report.
The data is in a SQL Server.
I have no problem connecting to the SQL Server and I can use the data in
Forms or in any SELECT, UPDATE, DELETE and INSERT SQL statements without any
problem.

Only with reports it doesn't work.

In the Report_Open event of the report I get a 2593 Runtime-error:
This function is not available in a MDB
at the commandline: Set Me.Recordset = MyRecordset
--
RW

  #3  
Old May 15th, 2007, 09:16 AM posted to microsoft.public.access.reports
RW
external usenet poster
 
Posts: 69
Default Report with ADODB.Recordset

Dear Maurice,

Thanks for your answer (both in the English as in the Dutch DG).
I did try to remove the Me. in the expression but the same error keeps
comming.

Set Recordset = MyRecordset

Run time-error 2593
This function is not available in a MDB

As I indicated I have no problem connecting to the SQL Server and I can use
the data in Forms or in any SQL statements in my code without any problem.
--
RW


"Maurice" wrote:

Also posted this in de 'dutch' NG -- replied there...

Remove the me. in front of the recordset

Maurice

"RW" wrote:

How can I use a ADODB.Recordset as datasource of a report.
The data is in a SQL Server.
I have no problem connecting to the SQL Server and I can use the data in
Forms or in any SELECT, UPDATE, DELETE and INSERT SQL statements without any
problem.

Only with reports it doesn't work.

In the Report_Open event of the report I get a 2593 Runtime-error:
This function is not available in a MDB
at the commandline: Set Me.Recordset = MyRecordset
--
RW

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.