is something wrong in my logic here? I have a subreport with only one table. No grouping on my subreport or on my main report. On my main report I'm passing a field called desaccountcode. The reason I have a subreport is to get a decode description for my desaccountcode. However, the descriptions can have various effective dates. I've used max date before but I seem to be having a lot of trouble with this one. Is the fact that I'm not grouping creating a problem? Or is there a trick to passing my code and then using it in the SQL of my subreport?