Hi All,
I am writing code to split the city, state, and zip line of addresses into different fields. (Access 03)
I got stuck on the following line to identify zip codes that are 5 digits and a space followed by 4 digits. (strZp is text to the right of space, valid US state code, and space)
If strZp Like "##### & ' ' & ####" Then
If strZp Like "##### [ ] ####" Then
If strZp Like "##### [!a-zA-Z0-9] ####" Then
There are other areas where I would like to use the like operator to identify a space within a string but the only thing I got to work is testing a specific character = " ". This involves many extra lines of code and seems very inelegant. (tesuji needed)
Anyone know a good way to do this?
Thanks,
alr
_____________________________________
If a large part of intelligence is the ability to generalize, it is ironic that a large part of what we call wisdom is the ability not to generalize.
I am writing code to split the city, state, and zip line of addresses into different fields. (Access 03)
I got stuck on the following line to identify zip codes that are 5 digits and a space followed by 4 digits. (strZp is text to the right of space, valid US state code, and space)
If strZp Like "##### & ' ' & ####" Then
If strZp Like "##### [ ] ####" Then
If strZp Like "##### [!a-zA-Z0-9] ####" Then
There are other areas where I would like to use the like operator to identify a space within a string but the only thing I got to work is testing a specific character = " ". This involves many extra lines of code and seems very inelegant. (tesuji needed)
Anyone know a good way to do this?
Thanks,
alr
_____________________________________
If a large part of intelligence is the ability to generalize, it is ironic that a large part of what we call wisdom is the ability not to generalize.