Value: 45 Name: RegFee, Value: -3 Name: RegFee, Value: 265 Name: RegProg,
Value: -5 Name: CSSAMem
...all in one field.
I am trying to pull a figure from name/value pair into a separate report
field, so I can sum and check totals, etc. Maybe have 4 or 5 different
fields that will all try to parse something different.
Thanks in advance.
- aj
>
> I am trying to pull a figure from name/value pair into a separate report
> field, so I can sum and check totals, etc. Maybe have 4 or 5 different
> fields that will all try to parse something different.
>
Well - I suppose where you eventually want to output the answers can be
dealt with after you've successfully parsed out the information you want.
:-)
Either way I'd say you'd be well off making the InStr function your good
friend (hmm along with len and probably mid and do/until) :-)
You'd use it to look for "Name" or "Value" in your main text string -
examine the text after that until you encounter a comma (I presume just from
looking at it what's there) and then start from that point searching again.
Have a little look and play - and just ask if you need something a little
more concrete :-)
BFN