J
John S via AccessMonster.com
HI,
My name is John.
I am trying do use the For Each Element In Group... Next Statement in Access
'97. I need to use it in a report and I need to use an array. I want to refer
to a text box on my report that contains my array. My code looks like this:
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
Dim TestArray(15) As Integer, Itm As Variant
TestArray(15) = Me.Text41
For Each Itm In TestArray
'Image1.Visible = CheckBox1 = True
'1.1. PROJECT DOCUMENTATION AND REVIEW
If Project_Delivery_1_1_1 = False Then
lbl_1_1.Visible = Project_Delivery_1_1_1 = False
Lbl_Incompleted_1_1.Visible = Project_Delivery_1_1_1 = False
End If
If Quality_Peer_Review_1_1_2 = False Then
lbl_1_1.Visible = Quality_Peer_Review_1_1_2 = False
Lbl_Incompleted_1_1.Visible = Quality_Peer_Review_1_1_2 = False
End If
Next Itm
Can anyone help me with making this code work. Thanks so much if you can help.
I have tried everything I can think of but nothing works!!. HELP!!! PLEASE
My name is John.
I am trying do use the For Each Element In Group... Next Statement in Access
'97. I need to use it in a report and I need to use an array. I want to refer
to a text box on my report that contains my array. My code looks like this:
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
Dim TestArray(15) As Integer, Itm As Variant
TestArray(15) = Me.Text41
For Each Itm In TestArray
'Image1.Visible = CheckBox1 = True
'1.1. PROJECT DOCUMENTATION AND REVIEW
If Project_Delivery_1_1_1 = False Then
lbl_1_1.Visible = Project_Delivery_1_1_1 = False
Lbl_Incompleted_1_1.Visible = Project_Delivery_1_1_1 = False
End If
If Quality_Peer_Review_1_1_2 = False Then
lbl_1_1.Visible = Quality_Peer_Review_1_1_2 = False
Lbl_Incompleted_1_1.Visible = Quality_Peer_Review_1_1_2 = False
End If
Next Itm
Can anyone help me with making this code work. Thanks so much if you can help.
I have tried everything I can think of but nothing works!!. HELP!!! PLEASE