G
Guest
Hi all. I am trying to run through fields on several subforms on a tabbed
control. The object is to try and find and count the tagged fields.
I am able to enumerate the controls on the main form and find out if a
control is a subform however, this is where i get stuck trying then to run
through the controls on the subform I have just identified. This is what I
have so far.
Dim i As Integer, j As Integer
Dim frm As Form
Set frm = Forms!frmInspection (This form has several subforms on a
tabbed control)
For i = 0 To frm.Count - 1
If frm(i).ControlType = acSubform Then
HELP!! I'M STUCK AS TO WHAT TO DO HERE!!
I want to find the field that have a .tag value of "CountMe" and update the
field to hold the count.
End If
Next i
Any and all help is greatly appreciated.
Thanks,
Barry
control. The object is to try and find and count the tagged fields.
I am able to enumerate the controls on the main form and find out if a
control is a subform however, this is where i get stuck trying then to run
through the controls on the subform I have just identified. This is what I
have so far.
Dim i As Integer, j As Integer
Dim frm As Form
Set frm = Forms!frmInspection (This form has several subforms on a
tabbed control)
For i = 0 To frm.Count - 1
If frm(i).ControlType = acSubform Then
HELP!! I'M STUCK AS TO WHAT TO DO HERE!!
I want to find the field that have a .tag value of "CountMe" and update the
field to hold the count.
End If
Next i
Any and all help is greatly appreciated.
Thanks,
Barry