Solved

Data environment reports

Posted on 2002-06-18
3
160 Views
Last Modified: 2010-05-02
Can anybody tell me how to use a data environment reports in VB.
Please give me a little elaborate example if possible.

let me give you this case.

i have to show a report. data is stored in a table in access. i have to fetch this data through a select *...query and show it in the report.

Regards
Seito
0
Comment
Question by:seito
3 Comments
 

Accepted Solution

by:
unni_bcanti earned 200 total points
Comment Utility
0
 
LVL 1

Expert Comment

by:Mahdi Mansour
Comment Utility
first: u havt to add dataEnvironment from the menu->Project->more activex designers->dataenvironment

a new window will open ,go to the connection propertes
select provider: microsoft jet 4.0 ....... "for access db"
press next and then enter ur db name "with the path "
press ok.

then right click on the connection1->add command1
right click on command1:
source of data:Table
objectName: here u choose the name of ur table that u want to show in ur report
then from Menu->project->Add Data Report
from propertes of the data report :
data source: DataEnvironment1
DataMember: Command1

then go to the coomand1 and grad it and drop it in the data report.

now to show ur report from let say a coomandbutton on aform

dataenvironment1.command1
datareport1.show
dataenvironment1.rscommand1.close

0
 

Author Comment

by:seito
Comment Utility
Thanks

Seito
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now