When I call an access report with the following code, it works GREAT, but I have to maximize the report window. IS there a way to have this done automatically? \r\n \r\n
\r\n
Code:
\r\n
Private Sub cmdPayView_Click()\r\n Dim Acc As Access.Application\r\n Set Acc = New Access.Application\r\n Acc.OpenCurrentDatabase strDataPath\r\n Acc.DoCmd.OpenReport "Employee Job Pay", acPreview\r\n Acc.Visible = True\r\n Set Acc = Nothing\r\nEnd Sub
When I call an access report with the following code, it works GREAT, but I have to maximize the report window. IS there a way to have this done automatically?
Code:
Private Sub cmdPayView_Click()
Dim Acc As Access.Application
Set Acc = New Access.Application
Acc.OpenCurrentDatabase strDataPath
Acc.DoCmd.OpenReport "Employee Job Pay", acPreview
Acc.Visible = True
Set Acc = Nothing
End Sub
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe