P
Pigeon70
Hi there!
I want to have my form "School/Teacher Details" open with edits, adding and
deleting not possible. I also want to create a button that when pressed will
allow edits, adding and deleting.
So far I have selected 'no' for allow edit, and add in the form properties.
I am attempting to write event procedure code for a button control that will
override these properties. Using the code below I have only managed to open
the form in design mode. Any clues to get it to do what I want would be much
appreciated.
Private Sub Edit_Form_Click()
On Error GoTo Err_Edit_Form_Click
DoCmd.OpenForm "School/Teacher Details", View:=acFormEdit
Exit_Edit_Form_Click:
Exit Sub
Err_Edit_Form_Click:
MsgBox Err.Description
Resume Exit_Edit_Form_Click
End Sub
Pam
I want to have my form "School/Teacher Details" open with edits, adding and
deleting not possible. I also want to create a button that when pressed will
allow edits, adding and deleting.
So far I have selected 'no' for allow edit, and add in the form properties.
I am attempting to write event procedure code for a button control that will
override these properties. Using the code below I have only managed to open
the form in design mode. Any clues to get it to do what I want would be much
appreciated.
Private Sub Edit_Form_Click()
On Error GoTo Err_Edit_Form_Click
DoCmd.OpenForm "School/Teacher Details", View:=acFormEdit
Exit_Edit_Form_Click:
Exit Sub
Err_Edit_Form_Click:
MsgBox Err.Description
Resume Exit_Edit_Form_Click
End Sub
Pam