disallowing additions and edits on a form

  • Thread starter Thread starter Brad Pears
  • Start date Start date
B

Brad Pears

I have a form which contains a subform and the subform contains yet another
subform within that. Depending on a particual field value (check box) , I
want to disable edits and additions on these forms. I could just disable the
entire form, but I want them to be able to click on a button on these
forms - so disabling the whole form is out of the question.

What is the syntax to use for disabling this? I can;t figure it out...

I thought you would use something like forms![formname].allowedits = false
but no go...

Any help would be appreciated...

Thanks,

Brad
 
Brad said:
-----Original Message-----
I have a form which contains a subform and the subform contains yet another
subform within that. Depending on a particual field value (check box) , I
want to disable edits and additions on these forms. I could just disable the
entire form, but I want them to be able to click on a button on these
forms - so disabling the whole form is out of the question.

What is the syntax to use for disabling this? I can;t figure it out...

I thought you would use something like forms! [formname].allowedits = false
but no go...

Any help would be appreciated...

Thanks,

Brad

Hi Brad,
you are almost there. It's the syntax to reference
subforms that is letting you down.

[subform control name].form.allowedits = false

Luck
Jonathan
 
Back
Top