I have a form w/ a list of checkboxes. When selected the a calculation is performed. I need to list the selected checkboxes in a list on my report.
I have a forall loop to 'grab' the selected checkboxes:
//////////////////////////////////////////////////
Function fi_Region_Count
Dim xCount As Integer
xCount=0
'Messagebox currentdocument.frmFirmIndiv.objectlist.count
Forall xCheck In CurrentDocument.frmFirmIndiv.ObjectList
If Left(xCheck.name,6)="region" Then
If xCheck.IsChecked Then
print xCheck.name
End If
End If
End Forall
'Messagebox xCount, MB_OK
fi_Region_Count=xCount
End Function
//////////////////////////////////////
I need to get the xCheck values from the form so that I can use the values as a list on my report.
I am greatful for any help that anyone can give.
I have a forall loop to 'grab' the selected checkboxes:
//////////////////////////////////////////////////
Function fi_Region_Count
Dim xCount As Integer
xCount=0
'Messagebox currentdocument.frmFirmIndiv.objectlist.count
Forall xCheck In CurrentDocument.frmFirmIndiv.ObjectList
If Left(xCheck.name,6)="region" Then
If xCheck.IsChecked Then
print xCheck.name
End If
End If
End Forall
'Messagebox xCount, MB_OK
fi_Region_Count=xCount
End Function
//////////////////////////////////////
I need to get the xCheck values from the form so that I can use the values as a list on my report.
I am greatful for any help that anyone can give.