how do you allow additions in a sub form 
Author Message
 how do you allow additions in a sub form

i have a sub form within a sub form and  i have allow additions turned off on
the second sub form. i want to turn it back on with a button. both sub forms
are in a tab control box. here are my form names.
main form frm_main
sub form 1 frm_sub_education
sub form 2 frm_sub_exam

here is the code for the button on sub form 2

Me![frm_sub_exam].form.AllowAdditions = True

the error that comes up is "can't find the field "frm_sub_exam" referred to
in your expression"

any suggestions

thank-you
rick



Mon, 10 Sep 2007 01:45:04 GMT  
 how do you allow additions in a sub form
Rick

If the Command Button is on sub form 2, then the code would be...
  Me.AllowAdditions = True

--
Steve Schapel, Microsoft Access MVP

Quote:

> i have a sub form within a sub form and  i have allow additions turned off on
> the second sub form. i want to turn it back on with a button. both sub forms
> are in a tab control box. here are my form names.
> main form frm_main
> sub form 1 frm_sub_education
> sub form 2 frm_sub_exam

> here is the code for the button on sub form 2

> Me![frm_sub_exam].form.AllowAdditions = True

> the error that comes up is "can't find the field "frm_sub_exam" referred to
> in your expression"

> any suggestions

> thank-you
> rick



Mon, 10 Sep 2007 03:01:26 GMT  
 how do you allow additions in a sub form
thank-you....it works. i fought for hours trying to figure this out.
Quote:

> Rick

> If the Command Button is on sub form 2, then the code would be...
>   Me.AllowAdditions = True

> --
> Steve Schapel, Microsoft Access MVP


> > i have a sub form within a sub form and  i have allow additions turned off on
> > the second sub form. i want to turn it back on with a button. both sub forms
> > are in a tab control box. here are my form names.
> > main form frm_main
> > sub form 1 frm_sub_education
> > sub form 2 frm_sub_exam

> > here is the code for the button on sub form 2

> > Me![frm_sub_exam].form.AllowAdditions = True

> > the error that comes up is "can't find the field "frm_sub_exam" referred to
> > in your expression"

> > any suggestions

> > thank-you
> > rick



Mon, 10 Sep 2007 03:13:06 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. sub Form does not allow additions

2. sub Form does not allow additions

3. Add new Rec's to a Sub frm when Allow Additions = False

4. undo form additions with sub-forms

5. My forms will not allow additions and my tables get a + column

6. Form won't allow edits or additions

7. 1-M Form won't allow additions!

8. 1-M form won't allow additions!

9. Access Form always allows additions!?

10. Linked SQL tables not allowing additions in Access forms


 
Powered by phpBB® Forum Software © phpBB Group