G Guest Feb 1, 2006 #1 Hello. How can I limit the number of records in a subform to 50 records? Thanks. Iram/mcp
G Guest Feb 1, 2006 #2 In the SQL used for the SubForm RecordSource add Top 50 Select Top 50 TableName.* From TableName
G Guest Feb 1, 2006 #3 Thanks. But how do I limit the amount of records to be created to 50 in the subform?
G Guest Feb 2, 2006 #4 On the OnCurrent event of the SubForm you can write the code If Me.RecordsetClone.RecordCount > 49 Then Me.AllowAdditions = False Else Me.AllowAdditions = True End If
On the OnCurrent event of the SubForm you can write the code If Me.RecordsetClone.RecordCount > 49 Then Me.AllowAdditions = False Else Me.AllowAdditions = True End If