Allow Additions Ignored

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.
 
K

Ken Snell \(MVP\)

Are you using DataSheet view for the form? Is there any code running in the
form's Open, Load, and/or Current event?
 
A

Andy

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.
 
K

Ken Snell \(MVP\)

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

Top