B
Barry A&P
way back when everything was typewritten Bell Used partnumbers like
204-040-032-1 that was all find and dandy well now they changed all the
endings (rightfully so) to -001 so i need to trim them out..
My PartNumber Table has two columns PartNumber and PartNumberTrimmed
i am trying to create a update Query to populate the PartNumberTrimmed field.
the issue is a lot of partnumbers that i dont want to change follow a
different format. here is some sample data
AN310-5 Dont Change
MS233465-28 Dont Change
204-040-003-21
204-005-003-001 Remove 2 Zeros
204-005-003-056R Remove 1 Zero and put R in revision Field
204-005-003-017 Remove 1 Zero
So all partnumbers that begin with the format ###-###-###- i need to take
the last set of digits and trim leading zeros and move any trailing Alpha's
to another field.. PartnumberRevision or something.
so that
204-005-003-001 becomes 204-005-003-1 and
204-005-003-024R becomes 204-005-003-24 R
im sure this is much easier than it is in my head
i have not dealt with a query like this yed so i am excited to see some
suggestions
thanks for any help
Barry
204-040-032-1 that was all find and dandy well now they changed all the
endings (rightfully so) to -001 so i need to trim them out..
My PartNumber Table has two columns PartNumber and PartNumberTrimmed
i am trying to create a update Query to populate the PartNumberTrimmed field.
the issue is a lot of partnumbers that i dont want to change follow a
different format. here is some sample data
AN310-5 Dont Change
MS233465-28 Dont Change
204-040-003-21
204-005-003-001 Remove 2 Zeros
204-005-003-056R Remove 1 Zero and put R in revision Field
204-005-003-017 Remove 1 Zero
So all partnumbers that begin with the format ###-###-###- i need to take
the last set of digits and trim leading zeros and move any trailing Alpha's
to another field.. PartnumberRevision or something.
so that
204-005-003-001 becomes 204-005-003-1 and
204-005-003-024R becomes 204-005-003-24 R
im sure this is much easier than it is in my head
i have not dealt with a query like this yed so i am excited to see some
suggestions
thanks for any help
Barry