TripleJHJO
Programmer
I am using VB6 to call an Access 2007 report. I am trying to show the report in print preview. The code executes, but does not show the report. If I change the acViewNormal parameter, the report prints a hard copy, so I know VB and Access work.
I have the following code:
Any suggestions?
Thanks,
J.Jensen
I have the following code:
Code:
Dim MyAcc As New Access.Application
MyAcc.OpenCurrentDatabase txtDbLoc.Text & "\job.mdb", True
MyAcc.DoCmd.OpenReport "Loading Exception", acViewPreview, , "Job_number = 899"
MyAcc.Quit
Set MyAcc = Nothing
Any suggestions?
Thanks,
J.Jensen