SSRS 2008 report on-load event

I'm building a report that will compare a field from one table to a field from another table, and change the font color based on the result of the comparison.

(T = Table, F = Field)

If T1F3 does not equal T2F3 then change T1F3 font color.

Table 1 & Table 2 are from different datasets.  The report is a sub-report which receives its parameters on load.

Is there a way to have an event triggered on report load to do this comparison & action?

Thanks,
- Dan
eisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bcnagelCommented:
Hi Dan.

Are you using the SSRS 2008 or 2008R2 version? If you're on R2 then you've got access to the Lookup() function in SSRS. That function will allow you to compare two fields from different datasets and take action based on that comparison.

Lookup in SSRS 2008R2

As far as the "on report load" question goes, Lookup() will work for you in the main report or the subreport, so I think you'll be in good shape either way.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eisAuthor Commented:
Thanks for the help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.