OK
Now do these steps.
==========================
** First create a database with msaccess named
DBASE and save the table as name
TBL
** Start
New Project with
VB6
** Add
DataEnvironment by right clicking on
Project Explorer goto
Add --
More ActiveX Designers -- Select
Data Environment
Now a window will be open where you see a tree view as
-
DataEnvironment1
|--
Connection1
==============================
Second
===============================
** Now set
Connectin Source property of
Connection1 to
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DBASE.mdb;Persist Security Info=False (You can change the path C:\DBASE.mdb)
** Add a
Commandby right clicking on
Connection1 --
Add Command
** Set
CommandType property to
1-adcmdTable
** Set
CommandText property to the name of your database table
(TBL)
** Now click on
Command1 you will see all the Fields in you database in a tree view.
================================
Third
================================
** Add a
Data Report
** Set
Data Source property of
Data Report to
Data Environment1
** Set
Data Member property of
Data Report to
Command1
================================
Fourth
================================
You ll see a bunch of
Sections on
Data Report
** Now add
RptLabel remember
RptLabel not
RptTextBox in Report header
(Second Tab)
** Now add
RptTextBox in
Detail Section or in
3rd Tab
** Set
DataMember property of
RptTextBoxes to your associated fields (selected with the help of a combo box)
================================
Add a button Form1
write this code in click event
===============================
Your report is made succssefully.
Reply if works or not
GOODLUCK
ALI