In the form you can add code to check the size of the table. Then call this code when the form opens, and also before you add the new record. Then if the limit is reached, a message box appears, and closes the form.
Private Sub Form_BeforeUpdate(Cancel As Integer)
GetRecCount
End Sub
Private Sub Form_Open(Cancel As Integer)
GetRecCount
End Sub
Private Function GetRecCount()
Dim db As DAO.database, rst As DAO.Recordset
Dim intCount As Integer
Set db = CurrentDb
Set rst = db.OpenRecordset("Bus"

With rst
If rst.RecordCount > 0 Then
intCount = rst.RecordCount
End If
If intCount >= 5 Then
MsgBox "Table limit reached, No additional records allowed", vbInformation, "Table Limit Reached"
Me.Undo
DoCmd.Close acForm, "FormNameGoesHere"
Exit Function
End If
End With
Set rst = Nothing
Set db = Nothing
End Function
HTH
PaulF