Solved

Data Report (Display Data Programically)

Posted on 2001-06-22
5
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

730 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