Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Environment or not????

Status
Not open for further replies.

Eyespider

Programmer
May 8, 2002
2
GB
Ok.
We are devloping the reporting side of our system and I just want to find out the best way to do it all.
We are using VB 6, SQL Server 7

We originally had used the following set up.
-There is a view in the DB which has all the data required for the report.
-We set up an object in a data environment which looked at the view in the DB
-A Crystal Report Designer object in VB was created which used the data Environment object as it's data source
-The 'where' part of the select * from DataEnvironment.ViewObject was done via a form in VB.
-This was then passed to an instance of the report and displayed on screen in a form

We have also tried the following way:
-The report was set up in the same way but it's data source was set to RDO Active Data and it pointed to the view itself in the DB
-The entire select statement was created via the form in VB and then a recordset was opened using it
-This recordset is then passed to the report and opened

Both ways are quite effective but I feel the latter will be less resource hungry. Can anyone confirm which is actually the better way??
When we tried to edit the report created in the first instance and adapt it to work the second way (change the data source in the designer) it kept giving an error leading us to believe that once you have created a report it is hard/not possible to change where it gets it's data from without re-creating it from scratch.

Anyway, any advice/comments would be greatly apprciated.
--Simon
 
A Stored Procedure will be the least resource instensive, and the fastest.

The latter does sound like the best approach of your two.

As for changing a data source, you should be able to use Set Location without too much trouble. It can be problematic, but since the data source in both conditions is a single *table* in effect, it should work.

-k kai@informeddatadecisions.com
 
I'm seveloping a software for inventory. I'm storing pictures of various product. Now i want to display them in report. but i'm facing lot of problem. I'm using VB6 and MS-Access 200. Anyone of u know the solution?
plzzzzzz help me.
 
BJIT,

It sounds like you need to start a new thread. Software Training and Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top