Link to home
Start Free TrialLog in
Avatar of Mark Drelinger
Mark DrelingerFlag for United States of America

asked on

pull value out of an access field into separate field

I have an access field with data such as :
 <ROOT><NEW_DATA FILE_NO="5535" BRANCH="02" CUST_ORD_NO="" TAX_NO="ON FILE" TYPE="O" FREIGHT="0.00" SALESMAN="S201" .

I need a query that puts the Branch # in a separate field.
The text varies, but The Branch Field is always preceded by "BRANCH=" and will be 2 characters.

Is this possible?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark Drelinger

ASKER

perfect. thank you.
yuo can also do this

SELECT [FieldName], Mid([FieldName],InStr([FieldName],"Branch=")+8,2) as BranchNo
FROM Table1;
even better ! thank you.