Rob3161
May 27th, 2006, 10:19 PM
i have prob in following... i am using VB6/CR8.5/Access Database.
Dim CrAppl As New CRAXDRT.Application
Dim CrRep As New CRAXDRT.Report
Set CrRep = CrAppl.OpenReport("D:\Visual Basic Proj/VatSoft\Wlist2.rpt")
With CrRep
'Selection
.RecordSelectionFormula = "{Wlist2.wlistno} = 2 "
End With
wlistno is integer field.
how do i pass this no using a integer variable??
Q.2 how can i refresh this report if data does not comeup on report??? at runtime using codes)
Dim CrAppl As New CRAXDRT.Application
Dim CrRep As New CRAXDRT.Report
Set CrRep = CrAppl.OpenReport("D:\Visual Basic Proj/VatSoft\Wlist2.rpt")
With CrRep
'Selection
.RecordSelectionFormula = "{Wlist2.wlistno} = 2 "
End With
wlistno is integer field.
how do i pass this no using a integer variable??
Q.2 how can i refresh this report if data does not comeup on report??? at runtime using codes)