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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBscript

Status
Not open for further replies.

kilabru

Programmer
Oct 15, 2002
26
0
0
US
I am using a trigger that takes input from a user via a valuelist. The valuelist is a locations list. The trigger looks at the selected location and then looks at a status in a corresponding table to determine if it is disabled. If it is disabled it returns an application error. I would rather use vbscripting to have a dialog box with the following vbscript.

<script type=&quot;text/vbscript&quot;>
alert(&quot;This location is disabled. Please select another location.&quot;)
</script>

My questions is..if I put this in the if statement will this script work? Remember that I don't want the selected value that is disabled to be entered into the field.

Thanks, John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top