|
-
Feb 24th, 2000, 12:32 AM
#1
Thread Starter
Hyperactive Member
How in the name of all your gods do you initiate a print preview of an Access report through VB6.
I think something like this was posted recently but unfortunately I missed the reply.
thanks in advance
Bigley
-
Feb 24th, 2000, 04:32 AM
#2
Thread Starter
Hyperactive Member
I'll do it myself
Its OK don't bother rushing in to help, I've solved it. SO for those of you that looked and said I don't know how to do that or something along those lines, here is the code. For those of you who just didn't care about my predicament...shame on you and may your errors be plentiful.
Private Sub Command1_Click()
Dim a As Access.Application
Set a = CreateObject("Access.Application")
a.OpenCurrentDatabase App.Path & "\NWind.mdb"
a.Visible = True
a.DoCmd.OpenReport "Catalog", acViewPreview
a.DoCmd.Maximize
End Sub
Thanks a bunch
Bigley
-
Jul 14th, 2000, 03:58 PM
#3
Lively Member
Clever Boy!
Well done Bigley - although I thought a clever lad like you could come up with a solution using the Win API or something ;-)
Hehehe!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|