Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2002
    Posts
    23

    Unanswered: Allow Additions and Edits

    Can any one explain to me why the following piece of code does not work ..

    forms!mainform!subform.allowaditions=true

    I get an error message " Object doesnt support this property"

    is there any other way i can do the same thing?...I am actually checking for records thru a query and if it returns no records then i would like to disallow additions and edits in a sub form.But I am stuck here when i use the above code.
    Thanks
    EzBoY

  2. #2
    Join Date
    Feb 2002
    Location
    North Carolina
    Posts
    13
    EzBoY--

    Try this syntax instead:

    Forms!mainform!subformname.Form.AllowAdditions = True

    Hope it helps--

    j-Dog

  3. #3
    Join Date
    Mar 2002
    Posts
    23

    Thank you

    looks like its working...but i will let you know once i am completely satisfied...thanks for the advice..it really helps..
    EzBoY

  4. #4
    Join Date
    Jul 2002
    Posts
    67

    Post Re: Allow Additions and Edits

    Originally posted by EzBoY
    Can any one explain to me why the following piece of code does not work ..

    forms!mainform!subform.allowaditions=true

    I get an error message " Object doesnt support this property"
    Remove the "!" between mainform and subform and replace it with a dot or period. Hopefully this will work.
    Don't do today, what can be done tomorrow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •