Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the AllowAddition Property

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am having difficulty changing the AllowAddition property for a form.
I have a Parent form (Called frm_Result), that has a Tab Control with Two tabs. On each of the tabs, I have a Subform. I am attempting to change the AllowAdditions property on the subform (Called subfrm_Result). I have tried:

Forms!subfrm_Result.AllowAdditions = True
Forms!subfrm_Result!.AllowAdditions = True
Forms!frm_Result!subfrm_Result.AllowAdditions = True
Forms!frm_Result!subfrm_Result!.AllowAdditions = True

The error states that Form subfrm_Result cannont be found.
 
"The complete syntax is rather complex and not at all obvious"

(Thank you Getz/Litwin & Gilbert)

Forms("MainForm")("SubForm").Form.Controls.("SubFormControlName")

In your case:

Forms("frm_Result")(subfrm_Result").Form.AllowEditions = True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top