Jumat, 25 Mei 2018

[MS_AccessPros] Retain only the letters and numbers in a string

 

In the snippet of code below, CombinedInfo is a string containing upper
and lower case letters, numbers, spaces and assorted special characters
such as &, *, $, #, @, etc. I need to delete the spaces and special
characters, retaining only the letters (upper and lower case) and
numbers. What type of test can I use in the For-Next loop to do that?

   For MyCounter = 1 To Len(CombinedInfo)
      Debug.Print MyCounter & " " & Mid(CombinedInfo, MyCounter, 1)
   Next MyCounter

Thanks, Steve

__._,_.___

Posted by: Steve thaw5 <thaw5@suddenlink.net>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar