T
Ted
in my a2k app'n, i have a form (Audit Reports), the 'main form', on which
there are two child/sub-forms, 'Evaluations' and 'Patients'. for now, i would
like to create a pair of command buttons on the Audit Reports form. each one
which will add a new/blank record into the control sources behind its
respective form. in both instances, the 'Add records' property of the
form/sub-form will be
set to 'No' so that user cannot add record w/o using the button provided.
i currently experimenting with a button to handle the 'Evaluations' form;
the code is below:
Private Sub AddAudit_Click()
On Error GoTo Err_AddAudit_Click
Forms![Audit Report]![Evaluations].AllowAdditions = True
DoCmd.GoToRecord acDataForm, Forms![Audit Report]![Evaluations], acNewRec
Forms![Audit Report]![Evaluations].AllowAdditions = False
Exit_AddAudit_Click:
Exit Sub
Err_AddAudit_Click:
MsgBox Err.description
Resume Exit_AddAudit_Click
End Sub
i guess i'm newbie enough not to understand what 'Object does not support
this object or method' (the received error message) means.
anyone out there care to help decode this. it'd be greatly appreciated.
thanks,
-ted
there are two child/sub-forms, 'Evaluations' and 'Patients'. for now, i would
like to create a pair of command buttons on the Audit Reports form. each one
which will add a new/blank record into the control sources behind its
respective form. in both instances, the 'Add records' property of the
form/sub-form will be
set to 'No' so that user cannot add record w/o using the button provided.
i currently experimenting with a button to handle the 'Evaluations' form;
the code is below:
Private Sub AddAudit_Click()
On Error GoTo Err_AddAudit_Click
Forms![Audit Report]![Evaluations].AllowAdditions = True
DoCmd.GoToRecord acDataForm, Forms![Audit Report]![Evaluations], acNewRec
Forms![Audit Report]![Evaluations].AllowAdditions = False
Exit_AddAudit_Click:
Exit Sub
Err_AddAudit_Click:
MsgBox Err.description
Resume Exit_AddAudit_Click
End Sub
i guess i'm newbie enough not to understand what 'Object does not support
this object or method' (the received error message) means.
anyone out there care to help decode this. it'd be greatly appreciated.
thanks,
-ted