• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

Data environment reports

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
seito
Asked:
seito
1 Solution
 
Mahdi MansourCommented:
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
 
seitoAuthor Commented:
Thanks

Seito
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now