troubleshooting Question

vba code to check for special characters in a string

Avatar of sxxgupta
sxxguptaFlag for United States of America asked on
Microsoft Access
6 Comments1 Solution14591 ViewsLast Modified:
I want a message box to indicate if special charaters are present in the first 7 characters of a text box named Part.  Special characters mean anything other than 0 through 9 and a(A) through z(Z).  ~`!@#$%^&*()-_+=/\|{}[];.,: and space are all examples of special characters to catch.  Could someone please help me with the VBA code to accomplish this.

Left(Me.Part, 7)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros