Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

anyone here use crystal reports?

Thread Tools
 
Search this Thread
 
Old 26 August 2005, 02:46 PM
  #1  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
Default anyone here use crystal reports?

boring fri afternoon question...

example,

i have a report pulling data from one table. now, i only want to pull records with the last 3 years (but to make this a rolling report i dont want to hardcode the criteria). there is a year table so what i want is a join on where the year is within the last 3 years (i know this is a bad example as you might use some date function but it's actually periods i'm using...)

normally i would just use something like (in SQL)

table.field in (select max(period), max(period)-1, max(period)-2 from period)

but how the hell do you use the function wizard thing to do this? i can't suss it out

cheers!

steven
Old 30 August 2005, 09:52 AM
  #2  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
Default

anyone?




All times are GMT +1. The time now is 10:34 AM.