Joined: 26 May 2009
Location: United States
Online Status: Offline
Posts: 3
Topic: Returning only the newest record on subreport Posted: 26 May 2009 at 9:28am
I have a simple report that is being used to verify tax setup. The core tax information is held in a couple of tables but the tax rate is stored in a '1 to many' table with effective date for historical purposes ( 1 tax can have many tax rate/effdate combinations) .
I am using a subreport to pull the tax rate information and currently it lists all the tax rates/effdate records for a particular tax. I am only interested in the newest record.
The report is using tables and not procedures, how do i limit the data returned to the newest record ?
Joined: 26 May 2009
Location: United States
Online Status: Offline
Posts: 3
Posted: 26 May 2009 at 10:36am
The 'newest' record does not have the same date between different tax types. CA sales tax for instance was just changed in April, but Nevada hasn't changed in eons. So there is no real criteria i can look for other than that the record is the newest of the set.
Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Posted: 27 May 2009 at 3:53am
Hi
What you can do is
Group on State Name i.e. CA,Nevada,
and then on Tax Type
and then do insert summary in which you select the effective date and type of summary as Maximum so it will give you the max effective date i.e. the newest date for the tax type in the subreport...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum