phillip.hess@fhwa.dot.gov
Member
- Joined
- Mar 13, 2007
- Messages
- 5
- Programming Experience
- Beginner
I have an application that has 8 check boxes on it. I want to verify that all the boxes are checked. If at least one is not checked then I want a message to pop up tell the user to make a valid selection and then have it go back to the form and allow the use to make a choice and reprocess the checkbox validation. I can verify the checkboxes and pop up a message telling the user to make a valid selection, but I can't figure out how to stop the process to allow the user to make a valid selection and try again. Here is my code for this section:
Sub Apps_Checked()
Dim Valid_Checkboxes As Int16
Do Until Valid_Checkboxes = 1
If Me.chkMicrostation.Checked = False And Me.chkGeopak.Checked = False And Me.chkInterplot.Checked = False _
And Me.chkProjectWise.Checked = False And Me.chkCadWorkspaces.Checked = False And Me.chkUpdateH.Checked = False _
And Me.chkAutoTURN.Checked = False And Me.chkAxiom.Checked = False And Me.chkUltraEdit.Checked = False Then
Valid_Checkboxes = 0
MessageBox.Show("Please enter a valid choice")
Else
Valid_Checkboxes = 1
End If
Loop
End Sub
It's very simple I no so don't laugh to hard when you read it.
Thank you for any help.
-Phillip
Sub Apps_Checked()
Dim Valid_Checkboxes As Int16
Do Until Valid_Checkboxes = 1
If Me.chkMicrostation.Checked = False And Me.chkGeopak.Checked = False And Me.chkInterplot.Checked = False _
And Me.chkProjectWise.Checked = False And Me.chkCadWorkspaces.Checked = False And Me.chkUpdateH.Checked = False _
And Me.chkAutoTURN.Checked = False And Me.chkAxiom.Checked = False And Me.chkUltraEdit.Checked = False Then
Valid_Checkboxes = 0
MessageBox.Show("Please enter a valid choice")
Else
Valid_Checkboxes = 1
End If
Loop
End Sub
It's very simple I no so don't laugh to hard when you read it.
Thank you for any help.
-Phillip