how to restrict # of records in a table

ahvc

Registered User.
Local time
Today, 10:34
Joined
Jun 17, 2002
Messages
41
Hello all,
I hope this is a right place to ask this:

I have a small application. I was asked if I can just make sure i can restrict the # of records in a few tables. For example, just max of 5 records in the member table. If the user tries to add the 6th member, it should say, 'Sorry this version allows only max of 5 members'.

Can you please help me know how to get this kind of result.

Regards and thanks much
AHVC
 
If you have your users enter records via forms, then you can restrict the number of records by checking the recordcount of table. You will have to write some VBA code to check the recordcount of the underlying table like this:
Me.RecordsetClone.RecordCount
 

Users who are viewing this thread

Back
Top Bottom