Not for sure if this is possible, but thought it's worth a try.
I have a "number" field that has numbers seperated by dashes. I would like each individual set of number/s between dashes be placed in its on field. My problem is some of the numbers have 2 numbers before the dash while some only have one number before the dash. If it were uniform I could either do a left, mid or right and it would work great. Here's an example of some of my data
35-22-11
02-10-18
9-8-1
Regardless of the how many numbers are present in a set I would like the first set beore the dash in one field, the second set of numbers in another and the third in another. Here's the query I used before I found out that not all the numbers are uniform in length.
UPDATE MASTER SET FIRST = nz(LEFT(NUMBERS,2),0), SECOND = nz(MID(NUMBERS,4,2),0), THIRD = nz(MID(NUMBERS,7,2),0;
Any help is appreciated.
Thanks,
Kacy
________
Paxil Side Effect
I have a "number" field that has numbers seperated by dashes. I would like each individual set of number/s between dashes be placed in its on field. My problem is some of the numbers have 2 numbers before the dash while some only have one number before the dash. If it were uniform I could either do a left, mid or right and it would work great. Here's an example of some of my data
35-22-11
02-10-18
9-8-1
Regardless of the how many numbers are present in a set I would like the first set beore the dash in one field, the second set of numbers in another and the third in another. Here's the query I used before I found out that not all the numbers are uniform in length.
UPDATE MASTER SET FIRST = nz(LEFT(NUMBERS,2),0), SECOND = nz(MID(NUMBERS,4,2),0), THIRD = nz(MID(NUMBERS,7,2),0;
Any help is appreciated.
Thanks,
Kacy
________
Paxil Side Effect
Last edited: