This is probably either really easy or impossible, but I can't figure out which it is.
I have an ADO recordset with some employee information from a database; ID numbers, names, etc. I need to combine that with some monthly and year-to-date fuel usage totals that I'm calculating in code and storing in an array (not in order). I was ordering the recordset in SQL and using a hash to get the totals for my report as I went through it, but due to a change my boss has requested, I now need to order the data by monthly totals.
In order to save myself a lot of rewrite time, I'd like to add fields to the existing recordset and stick the totals into those fields. Then I could just do a sort on the recordset. I haven't been able to add fields to the recordset (it gives me a message about not being able to append them in this context). Can I do this? And, if so, how?
I have an ADO recordset with some employee information from a database; ID numbers, names, etc. I need to combine that with some monthly and year-to-date fuel usage totals that I'm calculating in code and storing in an array (not in order). I was ordering the recordset in SQL and using a hash to get the totals for my report as I went through it, but due to a change my boss has requested, I now need to order the data by monthly totals.
In order to save myself a lot of rewrite time, I'd like to add fields to the existing recordset and stick the totals into those fields. Then I could just do a sort on the recordset. I haven't been able to add fields to the recordset (it gives me a message about not being able to append them in this context). Can I do this? And, if so, how?