Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare data in the same database

Status
Not open for further replies.

Panchovia

Programmer
May 6, 2010
48
CW
How do you find the last record in a transaction table with acc of years of data of the year 2010 and the first record (or any other record) of the year 2011 in the same database to compare data.
structure transaction table query

clientno date amount reference

 
Just use a select query to sort all by date. Then do a DLast lookup with parameters looking at 2010, and a DFirst lookup for parameters looking at 2011.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top