Record Limit

  • Thread starter Thread starter Confused Slug
  • Start date Start date
C

Confused Slug

How / can you limit the number of records that may be entered into a sub form
in datasheet view to say 20?

Thanks
Confused
 
Are you saying limit the number of entry/input to the subform so that it
does
not exceed 20 records?

One way you can do it in the subform's current event.

Dim rs As DAO.Recordset

Set rs = Me.RecordSetClone

If rs.recordcount = 20 then
me.AllowAddition = False 'disable data entry

One small thing: That should be

Me.AllowAdditions = False 'disable data entry

Tom Lake
 
Back
Top