Private Declare Function apiSetForegroundWindow Lib "user32" _ Alias "SetForegroundWindow" _ (ByVal hwnd As Long) _ As Long Private Declare Function apiShowWindow Lib "user32" _ Private Const SW_MAXIMIZE = 3 Function fOpenRemoteReport(strMDB As String, strReport As String, _ Dim objAccess As access.Application On Error GoTo fOpenRemoteReport_Err If IsMissing(intView) Then intView = acViewPreview If Len(Dir(strMDB)) > 0 Then fOpenRemoteReport_Exit: fOpenRemoteReport_Err: |