I have a memo field that contains a bunch of text that has an obnoxious header and footer that vary in length for each entry.
EG
This case was resolved by Darren Louie on 7/22/04 12:15 PM as follows: 1. Disabled Orderdesk. No more ODBC error.
2. Deleted AMGR. Settings now saving.
3. Looks like he created a new address book. Tried pointing to correct folder but got error while converting. Deleted the non .MAX files and now trying to convert. No error was given. He is still going through the conversion process and will call back if still having problems.
Case description:
Getting ODBC error when opening address book. Tries to save settings and not saving. Tried using existing data with Max8 but address book is empty.
-----------------------------------------------------------
Case number: HQ-27535
Case subject: ODBC error, settings not saving, and can't find one of his address books
Company: Southern Marketing Associates
Contact: Bales, Terry
Assigned to: Darren Louie
Case owner: Darren Louie
Case product: Maximizer 8
Case category: General
I want to extract all the text in between
"This case was resolved by Darren Louie on 7/22/04 12:15 PM as follows:"
and
"Case description:
Getting ODBC error when opening address book. Tries to save settings and not saving. Tried using existing data with Max8 but address book is empty.
-----------------------------------------------------------
Case number: HQ-27535
Case subject: ODBC error, settings not saving, and can't find one of his address books
Company: Southern Marketing Associates
Contact: Bales, Terry
Assigned to: Darren Louie
Case owner: Darren Louie
Case product: Maximizer 8
Case category: General"
I suspect from reading some of the other string manipulation posts that I will have to capture the length of the whole field the length of the header and the lenght of the footer then do a mid with those numbers which is fine, but how do i do a reverse count to the start of the first occurence of the word "Case Description:"
Keep in mind that there may be colons in the Case description as well.
Thanks
EG
This case was resolved by Darren Louie on 7/22/04 12:15 PM as follows: 1. Disabled Orderdesk. No more ODBC error.
2. Deleted AMGR. Settings now saving.
3. Looks like he created a new address book. Tried pointing to correct folder but got error while converting. Deleted the non .MAX files and now trying to convert. No error was given. He is still going through the conversion process and will call back if still having problems.
Case description:
Getting ODBC error when opening address book. Tries to save settings and not saving. Tried using existing data with Max8 but address book is empty.
-----------------------------------------------------------
Case number: HQ-27535
Case subject: ODBC error, settings not saving, and can't find one of his address books
Company: Southern Marketing Associates
Contact: Bales, Terry
Assigned to: Darren Louie
Case owner: Darren Louie
Case product: Maximizer 8
Case category: General
I want to extract all the text in between
"This case was resolved by Darren Louie on 7/22/04 12:15 PM as follows:"
and
"Case description:
Getting ODBC error when opening address book. Tries to save settings and not saving. Tried using existing data with Max8 but address book is empty.
-----------------------------------------------------------
Case number: HQ-27535
Case subject: ODBC error, settings not saving, and can't find one of his address books
Company: Southern Marketing Associates
Contact: Bales, Terry
Assigned to: Darren Louie
Case owner: Darren Louie
Case product: Maximizer 8
Case category: General"
I suspect from reading some of the other string manipulation posts that I will have to capture the length of the whole field the length of the header and the lenght of the footer then do a mid with those numbers which is fine, but how do i do a reverse count to the start of the first occurence of the word "Case Description:"
Keep in mind that there may be colons in the Case description as well.
Thanks