JeffMachine
MIS
I have a text field that I need to search in looking for the first 5 consecutive numbers, which would represent a PO #.
Here is what some of the the data looks like, the numbers on the right is what I'd expect from the query:
Text field PO field
PO 31125 31125
PO 34698, 34699, 34713 & 34715 34698
50 % po35066 35066
full payment po 35360 35360
PO 33994 & PO 35522 33994
PO 36032 36032
As you can see, no consistancy in entering this data. I've added a PO field to the table but I would like to populate it with the Text data.
I have almost 800 records to fix. I realize I probably will have to manually adjust some records but I'd like to get as many as I could fixed via a update query.
Any help with the SQL statement would be much appreciated.
Thanks ...
Here is what some of the the data looks like, the numbers on the right is what I'd expect from the query:
Text field PO field
PO 31125 31125
PO 34698, 34699, 34713 & 34715 34698
50 % po35066 35066
full payment po 35360 35360
PO 33994 & PO 35522 33994
PO 36032 36032
As you can see, no consistancy in entering this data. I've added a PO field to the table but I would like to populate it with the Text data.
I have almost 800 records to fix. I realize I probably will have to manually adjust some records but I'd like to get as many as I could fixed via a update query.
Any help with the SQL statement would be much appreciated.
Thanks ...