S
shawna@happyharborcomics
Hi there,
sorry i'm as green as it gets for vb. I've managed to piece together the
following code in my form however I just can't manage to end the code once
the macro runs (I just need the cursor to go to the next field after user ie
presses Enter
Thanks in advance
Shawna
Private Sub Pay1_BeforeUpdate(Cancel As Integer)
If MsgBox("Do you want yadda yadda yadda?", _
vbYesNo + vbDefaultButton2) = vbYes Then
Cancel = True
DoCmd.RunMacro "changedatetime"
Cancel
End If
End Sub
sorry i'm as green as it gets for vb. I've managed to piece together the
following code in my form however I just can't manage to end the code once
the macro runs (I just need the cursor to go to the next field after user ie
presses Enter
Thanks in advance
Shawna
Private Sub Pay1_BeforeUpdate(Cancel As Integer)
If MsgBox("Do you want yadda yadda yadda?", _
vbYesNo + vbDefaultButton2) = vbYes Then
Cancel = True
DoCmd.RunMacro "changedatetime"
Cancel
End If
End Sub