You need to write the code so that if the condition is true, the code exits, and it continued on the form OR, use an inputbox to get the information.
Example:
sFName = "Mike"
If sName = "Mike" Then
sLName = InputBox "Please enter your last name"
End If
This check for the condition, and throws an input box for further data gathering.
Look up InputBox on MSDN.
Did that help?
If you need to get more data, you can throw up more input boxes, but that is problematic.
The alternative is to send out the form and exiting the sub, but you will need public variables for this, which is also not a problem.
If this doesn't work, you need to post the steps, code and business rules you want to use.
mmcdonal
|