Any way of using in VB AllowAdditions for a subform?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to program a subform so that it can both AllowAdditions and then later
not, but still allow editing. The subform is a continuous form. I think this
is impossible, but maybe someone knows of a way around it, Please?
 
Jason said:
I want to program a subform so that it can both AllowAdditions and then later
not, but still allow editing. The subform is a continuous form. I think this
is impossible, but maybe someone knows of a way around it, Please?


Sure it's possible, just set the subform's AllowAdditions
property. If you wabt to do it from a mainform event
procedure, the syntax would be like this:

Me.subform.Form.AllowAdditions = True ' or False

If the subform is doing it to itself:

Me.AllowAdditions = True
 
Many thanks, that's fixed it
--
Jason


Marshall Barton said:
Sure it's possible, just set the subform's AllowAdditions
property. If you wabt to do it from a mainform event
procedure, the syntax would be like this:

Me.subform.Form.AllowAdditions = True ' or False

If the subform is doing it to itself:

Me.AllowAdditions = True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top