updating form properties for a subform

  • Thread starter Thread starter Jim Franklin
  • Start date Start date
J

Jim Franklin

Hi,

Using A2K or AXP, I would like to be able to set, using VB copde, some form
properties for a form displayed as a subform within my main form, for
example the form's AllowAdditions property.

At present, I am achieving this with the code:

Me!subform_control.Form.AllowAdditions = False

Although this seems to work, VBA doesn't seem to like it as I type it in.
Would I be right in saying this is not the correct way of doing it?

Thanks for any help,

Jim F.
 
The code is fine (assuming that "subform_control" is the right name).

Once you use the bang, it probably won't enumerate the members any more, so
you might try:
Me.subform_control...

It is a good idea to check the subform's Dirty property before this kind of
assignment.
 
Thanks Allen. I think I was more worried about the fact that it was not
listing the member options anymore and that therefore I was doing something
wrong.

Jim
 
Back
Top