Following is code on a splash form that opens when the database is invoked...
Is there any reason this would result in Runtime Error 3075 on the user's computer? Debug highlights the line I have in bold print.
Thanks.
Tom
Code:
Private Sub Form_Timer()
On Error GoTo Form_Timer_Error
DoCmd.Hourglass True
Me.TimerInterval = Me.TimerInterval - 50
If Me.TimerInterval = 0 Then
DoCmd.Hourglass False
DoCmd.Close
Dim stDocName As String
stDocName = "frmCustomers"
Dim i As Integer
[b]i = Nz(DMax("Outstanding", "qryBalanceActual"), 0)[/b]
If i >= 28 Then
Select Case MsgBox("There are Customers with balances 28 or more days overdue." _
& vbCrLf & " Do you wish to check the balances owing?""" _
, vbYesNo Or vbExclamation Or vbDefaultButton1, "Overdue Balances check")
Case vbYes
DoCmd.OpenForm stDocName
DoCmd.GoToControl "Page 3"
Case vbNo
DoCmd.OpenForm "frmMainMenu"
End Select
End If
End If
On Error GoTo 0
Exit Sub
Form_Timer_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure Form_Timer of VBA Document Form_frmSplash"
End Sub
Is there any reason this would result in Runtime Error 3075 on the user's computer? Debug highlights the line I have in bold print.
Thanks.
Tom