Solved

Data Report (Display Data Programically)

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

773 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