Solved

Data environment reports

Posted on 2002-06-18
3
166 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
[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
3 Comments
 

Accepted Solution

by:
unni_bcanti earned 200 total points
ID: 7091900
0
 
LVL 1

Expert Comment

by:Mahdi Mansour
ID: 7094913
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
ID: 7110080
Thanks

Seito
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…

691 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