PlasticMonster
Registered User.
- Local time
- Today, 18:37
- Joined
- Aug 21, 2012
- Messages
- 30
I am trying to get the message Request added
to show up when the new record command works.
The message "add button error" show if there are any errors, rather than just doing nothing and stopping.
However when it works I get both, I know I doing something very simple very wrong.
Private Sub bAddRecord_Click()
On Error GoTo errorhandler
RunCommand acCmdRecordsGoToNew
MsgBox "Request added
"
On Error GoTo 0
errorhandler:
MsgBox "add button error"
End Sub
10 points to the first person to tell me why im an idiot. :banghead: Please...My project is so close after weeks and this is one of the last fidly silly little problems left.

The message "add button error" show if there are any errors, rather than just doing nothing and stopping.
However when it works I get both, I know I doing something very simple very wrong.
Private Sub bAddRecord_Click()
On Error GoTo errorhandler
RunCommand acCmdRecordsGoToNew
MsgBox "Request added

On Error GoTo 0
errorhandler:
MsgBox "add button error"
End Sub
10 points to the first person to tell me why im an idiot. :banghead: Please...My project is so close after weeks and this is one of the last fidly silly little problems left.