G
Guest
Hi, All
I am using VB 6.0 front end and Access 2003 is back end, i created queries
with parameters and reports (data source are those queries), it works when i
double click on any report and then enter parameters in the prompt boxes,
How can i use my reports from VB application, i can print reports w/o
parameters
like this:
Set objAccess = New Access.Application
With objAccess
.DoCmd.OpenQuery strDB, acViewPreview, acReadOnly
.OpenCurrentDatabase (strDB)
.DoCmd.OpenReport strReportName
.DoCmd.Close acReport, strReportName
.Application.CloseCurrentDatabase
End With
If Not objAccess Is Nothing Then
objAccess.Quit
Set objAccess = Nothing
End If
Please, help where can i get some info on printing reports from VB and
reports data source are queries (saved in db) with parameters in Access 2003.
I am using VB 6.0 front end and Access 2003 is back end, i created queries
with parameters and reports (data source are those queries), it works when i
double click on any report and then enter parameters in the prompt boxes,
How can i use my reports from VB application, i can print reports w/o
parameters
like this:
Set objAccess = New Access.Application
With objAccess
.DoCmd.OpenQuery strDB, acViewPreview, acReadOnly
.OpenCurrentDatabase (strDB)
.DoCmd.OpenReport strReportName
.DoCmd.Close acReport, strReportName
.Application.CloseCurrentDatabase
End With
If Not objAccess Is Nothing Then
objAccess.Quit
Set objAccess = Nothing
End If
Please, help where can i get some info on printing reports from VB and
reports data source are queries (saved in db) with parameters in Access 2003.