dbTalk Databases Forums  

limiting number of records in a table

comp.database.ms-access comp.database.ms-access


Discuss limiting number of records in a table in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim Blanchard
 
Posts: n/a

Default limiting number of records in a table - 09-12-2003 , 09:32 PM






I have a table that is used to store configuration information,and it should
have only one record in it. I would like to protect it against having other
records added. I tried adding an autonumber field and limiting the value of
the field to 1, but I didn't like the result. It does prevent records being
added but is very awkward and inconvenient for a user if they try to add a
nother record. I would prefer to make it virtuallly impossible for a user
even to attempt to add a record, but still allow editing of values in the
existing record. Any suggestions on how this could be achieved?



Reply With Quote
  #2  
Old   
Tim Blanchard
 
Posts: n/a

Default Re: limiting number of records in a table - 09-14-2003 , 01:33 AM







"Tim Blanchard" <toolmantim (AT) SPAMFIGHTERshaw (DOT) ca> wrote

Quote:
I have a table that is used to store configuration information,and it
should
have only one record in it. I would like to protect it against having
other
records added. I tried adding an autonumber field and limiting the value
of
the field to 1, but I didn't like the result. It does prevent records
being
added but is very awkward and inconvenient for a user if they try to add a
nother record. I would prefer to make it virtuallly impossible for a user
even to attempt to add a record, but still allow editing of values in the
existing record. Any suggestions on how this could be achieved?


Never mind, I found the answer




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.