This is my first try at running Access Report by Visual Basic
I have the following code in my button press event:
' 2 - Show print preview
objAccess.DoCmd .OpenReport "Invoices", 2, ,
"[Invoice_Summary].[InvoiceNumber]=" & _
intCurrentInvoi ce
objAccess.DoCmd .Maximize
The result is that the Access application is not maximized but the
report inside it is. The application takes up about two thirds of the
screen. Then, if I maximize the application window, everything is
fine.
I would like everything to be max when the user sees it.
How can I maximize the Access application as well as the report inside
it.
Thanks.
Bill
I have the following code in my button press event:
' 2 - Show print preview
objAccess.DoCmd .OpenReport "Invoices", 2, ,
"[Invoice_Summary].[InvoiceNumber]=" & _
intCurrentInvoi ce
objAccess.DoCmd .Maximize
The result is that the Access application is not maximized but the
report inside it is. The application takes up about two thirds of the
screen. Then, if I maximize the application window, everything is
fine.
I would like everything to be max when the user sees it.
How can I maximize the Access application as well as the report inside
it.
Thanks.
Bill
Comment