crystal reports selection criteria

the first report that I set the .selectionformula property

.SelectionFormula = " WHere policyid = " & Session("policyid")

and the report prints correctly, then I select a different customer, the Session variable gets reset, (I'm sure) but the report outputs the report from the first PolicyID.

I've tried many times, selecting customers in many different orders, but the report always prints with the first policyid

Is there something I need to reset in the report to get it to accept the new .SelectionFormula ?
jbh_blueAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

mlmccCommented:
I assume if you use different policy id on the first run you get the correct data.

Crystal has a bad habit of caching the data.  Make sure IE and IIS are clearing the cache between runs.

mlmcc
0
jbh_blueAuthor Commented:
Yes, it is correct on the first time and the session vars which have the key are clear and reset correctly before the next try.

I tried

Response.Cache.SetCacheability(HttpCacheability.NoCache)

but got the same results

Thanks,
0
mlmccCommented:
I don't know what the settings are, I know from what I have read on this site that it is an issue.

You might ask in the IIS and Web Browser froums

mlmcc
0

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
jbh_blueAuthor Commented:
thanks, because of licensing issues that I just found out about, I'm moving my reporting back into vs2008 using rdlc reports
thanks,
0
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
Crystal Reports

From novice to tech pro — start learning today.