In dBase I use a substring to pull multiple cities that I want to query. To pull these I actually use a substring to only look at the first 2characters of a 5 character field. The expression looks like this:
at(substr(sc,1,2),'14,20,28,30,40,45,51,64,66,67)<>0. What this does is it goes to the field sc and finds the first position and selects 2 characters (sc,1,2). from that 1st position.
How would I do something similar in Access without having to select each city seperately? I am using the field SC and I only need to use the first 2 characters of the SC field to pull the data I need.
Any help would be really appreciated.
Bob
at(substr(sc,1,2),'14,20,28,30,40,45,51,64,66,67)<>0. What this does is it goes to the field sc and finds the first position and selects 2 characters (sc,1,2). from that 1st position.
How would I do something similar in Access without having to select each city seperately? I am using the field SC and I only need to use the first 2 characters of the SC field to pull the data I need.
Any help would be really appreciated.
Bob