2
2Blessed4Stress
I have a memo fleld called "TITLE". I need to extract part of the field that
contains this information: TM:T-6225-CT-MMC-010/59180 (but only the part
after the ":")
It may appear at the very end (nothing would be after /59180)
It may appear in the middle of other words or it may not appear at all.
I tried using:
NSTM: Mid([TITLE],InStr([TITLE],":")+1,InStr([TITLE],", ")+1)
It only worked in some records and not others.
For example. When the TITLE was:
FUEL OIL SERVICE PUMPS CTJ12LM-250, INSTRUCTION MANUAL; MFR
TM:T-6225-CS-MMC-010/59180
My results were right: T-6225-CS-MMC-010/59180
But when the TITLE was:
PRIMARY & SECONDARY SAMPLE COOLERS, TECHNICAL MANUAL FOR HEAT TRANSFER
PRODUCTS; MFR TM:T-9511-AK-MMC-010/51657
My results wereWRONG: T-9511-AK-MMC-010/
What should I be doing in my query to get the right results?
contains this information: TM:T-6225-CT-MMC-010/59180 (but only the part
after the ":")
It may appear at the very end (nothing would be after /59180)
It may appear in the middle of other words or it may not appear at all.
I tried using:
NSTM: Mid([TITLE],InStr([TITLE],":")+1,InStr([TITLE],", ")+1)
It only worked in some records and not others.
For example. When the TITLE was:
FUEL OIL SERVICE PUMPS CTJ12LM-250, INSTRUCTION MANUAL; MFR
TM:T-6225-CS-MMC-010/59180
My results were right: T-6225-CS-MMC-010/59180
But when the TITLE was:
PRIMARY & SECONDARY SAMPLE COOLERS, TECHNICAL MANUAL FOR HEAT TRANSFER
PRODUCTS; MFR TM:T-9511-AK-MMC-010/51657
My results wereWRONG: T-9511-AK-MMC-010/
What should I be doing in my query to get the right results?