P
Peter
Hi all again...
I have a subform with a create new record command button. I have added the
following code:
Private Sub Create_a_new_case_Click()
On Error GoTo Err_Create_a_new_case_Click
DoCmd.GoToRecord , , acNewRec
[Alert].SetFocus
Me.Signature = Forms![Username Form].[Operator]
Exit_Create_a_new_case_Click:
Exit Sub
Err_Create_a_new_case_Click:
MsgBox Err.Description
Resume Exit_Create_a_new_case_Click
End Sub
How can i prevent the user from creating a new record other then clicking on
this command button...otherwise i will not be able to populate/pick up the
FOSUnerName..Thanks for your patiance..
I have a subform with a create new record command button. I have added the
following code:
Private Sub Create_a_new_case_Click()
On Error GoTo Err_Create_a_new_case_Click
DoCmd.GoToRecord , , acNewRec
[Alert].SetFocus
Me.Signature = Forms![Username Form].[Operator]
Exit_Create_a_new_case_Click:
Exit Sub
Err_Create_a_new_case_Click:
MsgBox Err.Description
Resume Exit_Create_a_new_case_Click
End Sub
How can i prevent the user from creating a new record other then clicking on
this command button...otherwise i will not be able to populate/pick up the
FOSUnerName..Thanks for your patiance..