Matt Brown
Registered User.
- Local time
- Today, 20:44
- Joined
- Jun 5, 2000
- Messages
- 120
Hi all,
Can anyone help me with this:
I have six option frames on a page which when selected need to trigger one text box to say either "Completed" or "Outstanding".
Ie if all of the frames were clicked over to the Yes position giving a value of "1" then the text box on the previous screen should read "Completed".
If one of the options was in the "No" position giving a value of 2 then the text box on the other screen should read Uncompleted regardless of the other 5 options saying completed.
Basically its all or nothing.
I have the following VBA for a straightforward "one option frame", my problem is how do i check all six option frames to see if all six are showing Yes in one go, now i have thought about using a loop statement but not sure of the best one to use, i have even looked at the "Collection " statement but ran into difficulties there.
Code is as follows (For a single option frame) :
If Frame14.Value = 1 Then
[Forms]![frmCustChangeReq]![Status] = "Completed"
Else
If Frame14.Value = 2 Then
[Forms]![frmCustChangeReq]![Status] = "Outstanding"
End If
End If
Hope someone can help me with this ...please..
Matt
Can anyone help me with this:
I have six option frames on a page which when selected need to trigger one text box to say either "Completed" or "Outstanding".
Ie if all of the frames were clicked over to the Yes position giving a value of "1" then the text box on the previous screen should read "Completed".
If one of the options was in the "No" position giving a value of 2 then the text box on the other screen should read Uncompleted regardless of the other 5 options saying completed.
Basically its all or nothing.
I have the following VBA for a straightforward "one option frame", my problem is how do i check all six option frames to see if all six are showing Yes in one go, now i have thought about using a loop statement but not sure of the best one to use, i have even looked at the "Collection " statement but ran into difficulties there.
Code is as follows (For a single option frame) :
If Frame14.Value = 1 Then
[Forms]![frmCustChangeReq]![Status] = "Completed"
Else
If Frame14.Value = 2 Then
[Forms]![frmCustChangeReq]![Status] = "Outstanding"
End If
End If
Hope someone can help me with this ...please..
Matt