Can a password be set as parameter field in a Crystal Report , OR, could Validations be applied on a parameter field of a Crystal Report, like , if the user enters the wrong parameter , then the report quits?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t make the report quit/exit, but you can definitely hide details/groups/records in a report if the parameter is incorrect.
If they are using Crystal Reports, they can open the report and remove your “password protection”, but yes, you can do some pseudo protection if the report is being run in a viewer of some type.
All you would do is create a parameter called {?Password}. Then, within your current record selection, put:
This logic works like any other SQL logic in that the query must be true to return records. In the case above, if the password does not match, the query is false.
That would keep any records from showing up.
Alternatively, you can hide/suppress sections based on similar logic or even show a section if the password is wrong (and hide it if it’s right). Within this logic, you could format a section to show “Invalid Password Entered” if the password is wrong.
Make sense?