Solved

Data Report (Display Data Programically)

Posted on 2001-06-22
5
187 Views
Last Modified: 2008-03-10
Hello Again,

VB6(SP5), ADO, Access 97

I would like to use MS Data report. In addition, I'd like to display the data in the report programically. I tried to display data using the following when the report is initatized:

'Data Report
Me.DataMember = strMember     'Global Variable
Me.dataSource = strDataSource 'Global Variable

I keep receiving two error messages:

1. Invalid Data Source
2. Method or DataMember not found.

Do I have to have a "Data Environment" created?

What's the better report to use? VB6 Data Report or the Crystal Report(CR) Control that comes with VB6? Can I programically control CR?

Thanks,

-ADawn






0
Comment
Question by:ADawn
5 Comments
 
LVL 3

Expert Comment

by:jrspano
ID: 6219576
DEFINITELY use CR.  preferably get the developer edition of cr 8.  you will save yourself a lot of time using cr.  it is easy to use and very powerful.
0
 

Expert Comment

by:nomulap
ID: 6219596
Listening....
0
 
LVL 3

Expert Comment

by:Maxim10553
ID: 6219602
i never knew VB shipped with a Crystal Report(CR)Control. Are you sure? I dont see it in the available components.
0
 
LVL 12

Accepted Solution

by:
roverm earned 30 total points
ID: 6219796
Hi!
For the last question: DR or CR?
Well that depends on what you want to do:
If you only create relative simple reports, just use DR, it's free and it's there!
If you need to create complex report (for example, if you need to change data WHILST printing the report) you need NOT to use DR, but something like CR.

For the first question:
You should be able to set the datareport to any global recordsource.
Can you paste the full data-connection code ?

D'Mzzl!
RoverM
0
 
LVL 3

Expert Comment

by:jrspano
ID: 6219826
cr is on the cd you have to install it specifically
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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 While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

832 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