Does anyone knows how to make datasource location of a report fixed like in VB you can use app.path. Can anyone suggest how to do it?
Thanks in advance!
From VB6, just before Viewing the report, Set the DB location for each tables used in the report..
What is your Database..? Access/Oracle/SQL...?
I have an access database. How do I do that?
Before Viewing the report , set DB location for all the Tables used in the report:
Dim tt As CRAXDDRT.DatabaseTable For Each tt In m_Report.Database.Tables tt.Location = "C:\NewDB.mdb" Next
in visual basic 6, using Data control for accessing the access database. give the data base name(*.mdb) in "DataBaseName" property of data control.and select the table in the "RecordSource" property of data control. then place no_of text fields or lables in the same form(appear Data control) for viewing the values of the access database data by selecting datasource as data controll name and select field name in the "DataFiled" property of text box or label.