G
Guest
I have built a database that links to a client table from another software
package.
For some reason, however, client #'s in this other source sometimes have
spaces in front of them. There is a pattern however.
If the client # is 3 digits, it has 7 spaces in front of it.
If the client # is 4 digits, it has 6 spaces in front of it.
If the client # is 3 or 4 digits plus a letter, it has 0 spaces in front of
it.
The form I built has a combo that is currently very cumbersome to use
because the user has to either enter the spaces or scroll through hundreds of
clients to get to the one they want.
Is there a way to automate the data entry with some VBA code that would
evaluate the client # typed and then add the appropriate amount of spaces
when necessary?
Any help appreciated.
package.
For some reason, however, client #'s in this other source sometimes have
spaces in front of them. There is a pattern however.
If the client # is 3 digits, it has 7 spaces in front of it.
If the client # is 4 digits, it has 6 spaces in front of it.
If the client # is 3 or 4 digits plus a letter, it has 0 spaces in front of
it.
The form I built has a combo that is currently very cumbersome to use
because the user has to either enter the spaces or scroll through hundreds of
clients to get to the one they want.
Is there a way to automate the data entry with some VBA code that would
evaluate the client # typed and then add the appropriate amount of spaces
when necessary?
Any help appreciated.