I have vb form tht accepts user data.I need to check whether user enters emailid in the correct format ?Please provide suggestion .Thanks in advance
ponnu
0
Light Poster
Recommended Answers
Jump to Posttry this
first define a functionPrivate Function IsValidEmailAddress(ByVal sEmail As String, Optional ByRef sReason As String) As Boolean sEmail = LCase(Trim(sEmail)) If Len(sEmail) < 7 Then sReason = "Too short" ElseIf sEmail Like "*[!0-9a-z@._+-]*" Then sReason = "Invalid character" ElseIf Not sEmail Like "*@*.*" Then sReason …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.