Well its exactly as I suspected. So check out the code that I created for the user to save face on a glitch in the database. I lied but its a white lie:
Code:
Private Sub Form_Open(Cancel As Integer)
On Error GoTo ErrHandler:
DoCmd.GoToRecord , , acNewRec
Me.txtCustNum.SetFocus
Exit Sub
'This ErrHandler was created to take care of an error that would occur when opening
'the counter log from one of the split forms in the query menu. The debug would always
'point to the Docmd.GoToRecord , , acNewRec line. To give the user an explanation of why
'they are being redirected to the Query Menu, I have created a message box stating
'that this is due to high traffic. This of course is not the case but makes the interface
'look less glitchy and also prevents a run-time error.
ErrHandler:
MsgBox "Recordset Could Not Load Due To High Traffic." _
& vbCrLf & vbCrLf & "Redirecting To Query Menu.", vbInformation, "Notification"
DoCmd.Close acForm, "Counter Log"
DoCmd.OpenForm "Query Menu"
Exit Sub
End Sub
This is the best I can do unless anyone else has a better suggestion. Also I noticed that the problem only happens if I save the VBA. When I save the VBA, the code is broken until the initial execution. Upon initial execution, the code will present an error. After this happens, the code is established and will work till the next time I edit the code and save it. It's probably a compile sort of thing. If anyone knows anything about this, please give your feedback. This error is killing me. Also the reason why I felt this code was ok for now is that it should only happen once. After the user executes it for the first time, it should work from then on never giving the error message again. I think I can live with that.