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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit Table Size...

Status
Not open for further replies.

intlguild

Programmer
Feb 9, 2001
7
US
I would like to limit the number of records in a table...

Help?

Thank you,

Ben
 
Why!
You can control it from a form by using code like

Dim rst As Recordset, db As Database
Set db = CurrentDb
Set rst = db("tablename")
rst.MoveLast
If rst.RecordCount > 12 Then
Me.AllowAdditions = false
Else
Me.allowadditions = true
End If
Set rst = Nothing

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top