Solved

Creating a report based on a ADO recordset.

Posted on 2002-06-19
7
443 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

749 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