G
Guest
I have a linked database. One of the fields is a memo field containing several data elements that I can't use in its present form. Every record consists of at least three elements, but some have more. None of the elements are a uniform length (so I can't use Left, Middle or Right functions). Some of the records consist of portions I would like in a separate record. I don't mind creating a new table to use the data as long as I can set up the query so I can rerun it when I refresh the linked table
Ex
[L=ENGLISH][R=PRINCIPAL]This is the text sentence.[R=WITNESS]This is a different sentence.[R=Role1]This is the male sentence for Role1.&!$This is the female sentence for Role1
Each record ID will have one of these memo strings.
I want a query or table with these fields
- SentenceID, Language (what is between "L=" and "]"
- Role (what is between "R=" and "]"
- MaleSentence (what is between the trailing Role "]" and "&!$"
- FemaleSentence (what is between the "&!$" and the next "[R="
If there are multiple Roles, I want to create a new record with the same SentenceID and the other fields for each role
Any ideas
I know this is long, but I hope it is clear. Thanks for any help
Laurie
Ex
[L=ENGLISH][R=PRINCIPAL]This is the text sentence.[R=WITNESS]This is a different sentence.[R=Role1]This is the male sentence for Role1.&!$This is the female sentence for Role1
Each record ID will have one of these memo strings.
I want a query or table with these fields
- SentenceID, Language (what is between "L=" and "]"
- Role (what is between "R=" and "]"
- MaleSentence (what is between the trailing Role "]" and "&!$"
- FemaleSentence (what is between the "&!$" and the next "[R="
If there are multiple Roles, I want to create a new record with the same SentenceID and the other fields for each role
Any ideas
I know this is long, but I hope it is clear. Thanks for any help
Laurie