Hi,
I've an Access db with a table that records the state of an electricity meter on successive moments, say every last day of month. Now I want to compute the electricity use over the months. In order to do that I have to sort the records by date and loop through the table and compute for each record the difference with the foregoing record.
How can I do that in VBA for MS-Access 2000? I'm rather new to it. I have developed a form to edit the records and would like to put the code under a button in this form.
Can anyone help me?
Henk
I've an Access db with a table that records the state of an electricity meter on successive moments, say every last day of month. Now I want to compute the electricity use over the months. In order to do that I have to sort the records by date and loop through the table and compute for each record the difference with the foregoing record.
How can I do that in VBA for MS-Access 2000? I'm rather new to it. I have developed a form to edit the records and would like to put the code under a button in this form.
Can anyone help me?
Henk