Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limiting record numbers in a form

Status
Not open for further replies.

lamaar

Technical User
Jun 29, 2000
392
GB
Is there a way to limit the amount of records which can be entered into a form. I want the ser to be limited to three. If he wants to add a new one he will have to delete an old one.

Thanks
Lamaar75@hotmail.com
 
Use the BeforeInsert event of the form to count the number of existing records. If it exceeds the magic threshold, then display a message to the user and Cancel the insertion.
 
Thanks for that.. Lamaar75@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top