Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selection based on the CurrentCEUserName

Status
Not open for further replies.

raja2008

Technical User
Apr 16, 2008
265
US
Hello Everyone!

Using CrystalREports XI r2 ,Business Objects Enterprise and SQLServer2005.

I'm trying to restrict the record selection based on who is logged in.

Which is the bestway to do it.
 
Hi,
Add a test in the record selection formula:

If CurrentCEUserName = 'whatever' then
somefield = something
else
if CurrentCEUserName = 'someother' then
someotherfield = somthingelse



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thank you Turkbear That's what i did and for some reason it didn't work when i directly used the CurrentCEUserName in the record selection formula.
When i run the report it just keeps going never comes with the results.

Then i created a formula with the CurrentCEUserName and used that in my RecordSelection formula it works great.

Thank You.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top