Solved

Creating a report based on a ADO recordset.

Posted on 2002-06-19
7
442 Views
Last Modified: 2008-03-10
Is it possible, and if so how would you use an access report against an ADO recordset.  For example I have a peice of code that creates and populates an ADO recordset with all the data for a desired report.  Is it then possible to open a report, point the report to the ADO recordset and voila.
0
Comment
Question by:m_bizon
7 Comments
 
LVL 8

Expert Comment

by:dovholuk
ID: 7093526
i didn't give it a go... but here's at least ONE site that claims to do just that....

http://www.programmingmsaccess.com/Samples/VBAProcs/VBAProcsToAssignAnADORecordsetToAReport.htm

i'll try it out and get back to you...

dovholuk
0
 
LVL 2

Expert Comment

by:Carlovski
ID: 7095330
I'm not sure if it is possible (It probably is, I just haven't tried it!)
My usual way of doing this sort of thing is to write the data out to a temporary table, and base the report on that (The advantage is that you can just bind the report to the table, and drag and drop your fields into the report) It can be a bit tricky in a multiuser situation though.
0
 
LVL 4

Expert Comment

by:wesleystewart
ID: 7095637
I believe in Access2002 you can bind a form or report directly to a recordset.

Wes
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 7

Expert Comment

by:Daniel Stanley
ID: 7097026
i think you can bind an ADO recordset to a form dynamically, but not a report.

drs66
0
 
LVL 28

Expert Comment

by:TextReport
ID: 7117336
Wes is correct in Access 2002 there is a recordset property that "Returns or sets the ADO Recordset or DAO Recordset object representing the record source for the specified form, report, list box control, or combo box control. Read/write."

In previous versions all people are doing is changing the recordsource so it requearies the database, probably not what you are wantiong to do.

Cheers, Andrew

0
 
LVL 54

Expert Comment

by:nico5038
ID: 7253755

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7269919
Per recommendation, points NOT refunded and question closed.

Netminder
CS Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question