Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function don't work! Why?

Status
Not open for further replies.

PeachRL

Technical User
Nov 9, 2000
6
US
Function order_onsubmit()
dim returnVal
if order.License.value = "" and order.State.value = "CA" then
order_onsubmit = false
returnVal = msgbox ("A License Number is required for California and Minnesota", 17, "Validation Error!")
order.License.focus()
'exit Function
elseif order.License.value = "" and order.State.value = "MN" then
order_onsubmit = false
returnVal = msgbox ("A License Number is required for California and Minnesota", 17, "Validation Error!")
order.License.focus()
'exit Function
end if
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top