Solved

VBScript To Add Blank In A Field

Posted on 2012-03-14
2
290 Views
Last Modified: 2012-03-14
I need a vbscript code that will look in a field, find < > and make the field blank if it finds the "<" or ">"

If field5 contains "<" or ">", then make field blank or empty.
0
Comment
Question by:gbautista34
2 Comments
 
LVL 4

Accepted Solution

by:
Paul-B earned 500 total points
ID: 37722810
Try the following but using the name of your form in place of "TheForm" and of course the right field name in the case its not actually called field5..

If InStr(TheForm.field5.Value,"<") > 0 Or InStr(TheForm.field5.Value,">") > 0 Then TheForm.field5.Value = ""

Open in new window

0
 

Author Closing Comment

by:gbautista34
ID: 37722828
Excellent and quick!  I appreciate the help.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB Script to add site to Java Exception List 4 75
VB Script: restart service function 30 36
Help Required 2 29
Passing Credentials into a command line 13 32
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question