Allow Additions Ignored

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

Access 2003.

I have a form based on a table and in the Properties (Data Tab), I have set
Allow Additions to No. However, when I open the form, I can navigate to a new
record and the navigation buttons do not have the New Record button greyed
out.

Any help appreciated.
 
Are you using DataSheet view for the form? Is there any code running in the
form's Open, Load, and/or Current event?
 
Figured this one out.

I opened the form with DataMode:=acFormAdd which seems to have overwritten
the Allow Additions = No property.

Thanks for help Ken.
 
Andy said:
Figured this one out.

I opened the form with DataMode:=acFormAdd which seems to have overwritten
the Allow Additions = No property.

Yes, the DoCmd action's arguments will override the property settings for
the form/report that you're opening.
 

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