C
Chey
I have this code
Private Sub Form_Open(Cancel As Integer)
Dim strMsg As String
If (Nz(Me.[TA Number], "") = "") Then
strMsg = "No Travels to Approve."
If MsgBox(strMsg, vbRetryCancel + vbExlcamation, "Incomplete Data")
= vbRetry Then
Me.[TA Number].SetFocus
Exit Sub
Else
Me.Undo
DoCmd.Close acForm, Me.Name, acSaveNo
Exit Sub
End If
End If
DoCmd.OpenForm "Appoved"
End Sub
Instead of it saying retry cancel. Can I have it say go to approval or okay?
This will make more sense to the person operating it.
Thanks
Chey
Private Sub Form_Open(Cancel As Integer)
Dim strMsg As String
If (Nz(Me.[TA Number], "") = "") Then
strMsg = "No Travels to Approve."
If MsgBox(strMsg, vbRetryCancel + vbExlcamation, "Incomplete Data")
= vbRetry Then
Me.[TA Number].SetFocus
Exit Sub
Else
Me.Undo
DoCmd.Close acForm, Me.Name, acSaveNo
Exit Sub
End If
End If
DoCmd.OpenForm "Appoved"
End Sub
Instead of it saying retry cancel. Can I have it say go to approval or okay?
This will make more sense to the person operating it.
Thanks
Chey