Solved

Creating a report based on a ADO recordset.

Posted on 2002-06-19
7
438 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now