G
Guest
I have a memo field with multiple sentences in it. I'm trying to pull out
just the second sentence to autopopulate another field. Each sentence is
seperated by 2 vbCRLFs. How can I pull out just the second sentence?
My thought was to locate the 2nd vbcrlf from the left and also from the
right then store what was in the middle. But I can't even locate the first
vbcrlf. This is what I've tried so far with no luck.
lngVBCRLF1Loc=instr(vbcrlf,me.prodprocedures)
or
lngVBCRLF1Loc=instr((Chr13)+chr(10)),me.prodprocedures)
I get a 0 every time.
Please help
just the second sentence to autopopulate another field. Each sentence is
seperated by 2 vbCRLFs. How can I pull out just the second sentence?
My thought was to locate the 2nd vbcrlf from the left and also from the
right then store what was in the middle. But I can't even locate the first
vbcrlf. This is what I've tried so far with no luck.
lngVBCRLF1Loc=instr(vbcrlf,me.prodprocedures)
or
lngVBCRLF1Loc=instr((Chr13)+chr(10)),me.prodprocedures)
I get a 0 every time.
Please help