G
Guest
I made a form that consist of two textboxes and a subform thats based
off of a query. I placed this code to count the number of rows that
contain a certain value (rec_num) in the subform, but i get a "You
cancelled the previous operation" error message. Before the form
opens, it prompts you for the rec_num. This is the code.
Private Sub Text9_Click()
Dim x As Integer
x = DCount("[agreement_num]", "ammend")
Text9 = x
End Sub
off of a query. I placed this code to count the number of rows that
contain a certain value (rec_num) in the subform, but i get a "You
cancelled the previous operation" error message. Before the form
opens, it prompts you for the rec_num. This is the code.
Private Sub Text9_Click()
Dim x As Integer
x = DCount("[agreement_num]", "ammend")
Text9 = x
End Sub