Daily useage

G

Guest

Daily meter readings are entered into a table.
How can I obtain the daily useage or consumption either in a query or form?
Example: Meter reading as of 6/10/07 is 77,189. Meter reading as of
6/11/07 is 78,150. How can I see what was used from 6/10 to 6/11?

THANKS FOR ANY SUGGESTIONS!
 
G

Guest

Try this using your table and field names --
SELECT kaltman.Meter, kaltman_1.ReadDate,
Max([kaltman_1].[Reading]-[kaltman].[Reading]) AS [Daily Usage]
FROM kaltman INNER JOIN kaltman AS kaltman_1 ON kaltman.Meter =
kaltman_1.Meter
WHERE (((kaltman_1.ReadDate)>[kaltman].[ReadDate]))
GROUP BY kaltman.Meter, kaltman_1.ReadDate
ORDER BY kaltman_1.ReadDate;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top