Some options:
1. Set the form's AllowAdditions property to No.
2. Cancel the form's BeforeInsert event.
3. Use a Number (not AutoNumber) field as the table's primary key. Set the
Default Value of this field to:
1
Don't expose this field in the form. After one record is added another
cannot be. If you want to go over the top, you could also set the Validation
rule on the field to:
=1
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"MLH" <CR**@NorthState.net> wrote in message
news:7l********************************@4ax.com...
I have a form based on a table that is opened this way...
DoCmd.OpenForm "frmAdminSetupInfo", , , , A_EDIT
It was my intention that the form allow the user to edit table
data - not add records. The table contains a single record only.
I don't want more records be added to the table.
When frmAdminSetupInfo opens, all one has to do to go to
a newrec (empty new record) is press PGDN or hold down
the TAB key until focus reaches last tabbable control then
TABs its way on to the newrec. How can I accomplish what
I'm seeking here?