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

Text Box validation

Status
Not open for further replies.

CC801340

IS-IT--Management
Jul 10, 2001
147
GB
I'm sure its extremely simple but I'm after some code which will check the string entered into a form textbox for a valid email address and warn the user if a valid email address is not entered.

The textbox will be empty at times and so an empty string should be ignored.

Many thanks in advance

 
Try this


Private Sub TexteBox_BeforeUpdate(Cancel As Integer)
if TexteBox ... is not valid ... then
Cancel = True
End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top