I am attempting to query some history records from a SQL table. In this table, one field needs to be split into multiple fields for my purposes.
It looks like the data is stored in an XML format, but that's just a guess from me, as I've never really delved into XML other than to glance at some once or twice.
So in this field, all the records are something like this:
So my question is... is there any way to easily parse this information without some long drawn-out functions? I do not have access to build User Defined Functions so far, so that's not an option.
If the total RecordSource were small enough, I could just pull it into an Access database, and work with it in VBA, but I think it's too big now, and KNOW it will be later.
So my initial guess is to use a combination of SUBSTR and CHARINDEX, and possibly another one or two functions. But I am hoping there's an easier way to go about this.
What I want to get out of it is 4 columns:
OldTopStatus, OldBottomStatus, NewTopStatus, NewBottomStatus
Thanks for any suggestions
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
It looks like the data is stored in an XML format, but that's just a guess from me, as I've never really delved into XML other than to glance at some once or twice.
So in this field, all the records are something like this:
Code:
<Updates><Field Name="TopLevelStatus" OldValue="Dirty" NewValue="Clean" /><Field Name="LowLevelStatus" OldValue="Stained" NewValue="NotStained" /></Updates>
So my question is... is there any way to easily parse this information without some long drawn-out functions? I do not have access to build User Defined Functions so far, so that's not an option.
If the total RecordSource were small enough, I could just pull it into an Access database, and work with it in VBA, but I think it's too big now, and KNOW it will be later.
So my initial guess is to use a combination of SUBSTR and CHARINDEX, and possibly another one or two functions. But I am hoping there's an easier way to go about this.
What I want to get out of it is 4 columns:
OldTopStatus, OldBottomStatus, NewTopStatus, NewBottomStatus
Thanks for any suggestions
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57