 |
caloy Level: Protégé
 Registered: 15-03-2006 Posts: 4
|
Re: printing/viewing an Access Report from VB
try this small code.......
Dim objAccess As Object
dbName = App.Path & "\ <database name>"
rptName = "<report name"
Preview = acPreview 'acNormal
With objAccess
.OpenCurrentDatabase filepath:=dbName
If Preview = acPreview Then
.Visible = True
.DoCmd.OpenReport rptName, Preview
Else
.DoCmd.OpenReport rptName
End If
End With
gud luck c==|{======>
|
|
15-03-2006 at 07:31 AM |
|
|
|
|
 |
 |