I am using the following code in a subform to limit the number of enteries:
form_beforeInsert event:
If Me.Recordset.RecordCount = 3 Then
MsgBox "Maximum 3 line items can be entered!"
Cancel = True
End If
Now what I want is to replace the "3" with an user inputed value...
I have a subform (frm_SUB) within a form (frm_MAIN). On my main form I have a field ([Count])that requires the user to enter a number. (frm_SUB) and (frm_MAIN) are linked by a common ID.
What I want to happen is for the subform (set up in data sheet view) to generate, automatically, the number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.