By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,140 Members | 1,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,140 IT Pros & Developers. It's quick & easy.

how to preview a report using VB

P: n/a
hi guys,
this question has been asked here for many times now and i've been
trying to do the suggested solutions but it just doesn't work for me.
i tried this suggested solution:

Private Sub Command1_Click()
Dim objAccess As Object
Set objAccess = CreateObject("Access.Application")
objAccess.OpenCurrentDatabase "d:\date\db1.mdb", False
objAccess.DoCmd.OpenReport "Table1", acViewPreview
End Sub

But everytime i clicked the button, the report is being printed. Did
i miss something? i hope there's somebody patient enough to help me on
this one.
Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.