Solved

Data Report (Display Data Programically)

Posted on 2001-06-22
5
184 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 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

20 Experts available now in Live!

Get 1:1 Help Now