see ur report for
in file menu uncheck the option save data with report
and then save the report.
or
in code write the statements
"reportobject.discardsavedata=true
reportobject.refresh"
before previewing the report
Riaz Afridi
NOP
Just remove the name of the database and leave the dbo. with the view but u will vrify the report each time when u change the database. it is the big problem with ODBC Conncetion uu will repeat this exercise when u will change the database name.
the best solution is to use "RUN time...
Dear it is simple
Just assing a DataSoure i.e runtime Recordset which contains the data of the sub report as u have done for the main report.
means do like this.
first declare to subreprot object and set them
using set statment from the main report.
"subReportObject1.setdatasource...
Yes it is very easy to do that
I am giving an example with will help u too much
but ur report datafields and recordset fields must be same
'here is the Code
'ADD the to a Module in VB
Declare Function CreateReportOnRuntimeDS Lib "p2smon.dll" ( _
lpUnk As Object, ByVal ReportFile As...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.