Quote Originally Posted by MartinLiss View Post
Code:
Private Sub cmdcancel_Click()
 MsgBox "Are you sure you want to exit program", vbQuestion + vbYesNo, "Confirm"
    Unload Me
End Sub
You need to query the user's response as you did here
Code:
If MsgBox("Is this the most economical alternative?", vbQuestion + vbYesNo, "Confirm") = vbYes Then
BTW you never did answer my question which was how does the user know that this is the most economical alternative?
I thought I have already in an earlier post. It is a choice the user has to make. It has to do with the cost. I mean the life cycle costing of implementing the system. Whether, if it's gonna be cheaper to do an impressed current protection of the pipeline or a sacrificial anode protection of the pipeline. It is a cost comparison which the client or the operator of the pipeline has to consider. He enters all the costing for the different stages of the project: meaning total cost at design, operation, decommissioning etc and compares the two values giving the scope of the project and other factors ecetera, ecetera. Hope it's clear this way.