Hello. I am trying to make Employee badges at work using Crystal Reports 8.0. Basically, all employees have a four digit number assigned to them. I can call up the four digit number and display it but what I want to do is have that number reference a picture on the form (which all start out invisible or "suppressed"
and make it appear. So I have all the different employee's pictures on the form but I do not know how to:
A) Differentiate between them. I.E. give each one a different name or label so I can refrence then in an algorithm.
B) Make an if/then statement that reads if the employee number is x, make picture x appear, else make it disappear.
So the code lay out is something like:
if ( empbasic.empphoto = 3204) then
{
3204.supressed = false;
}
else
{
3204.supressed = true;
}
*Note: empbasic is the database where the employee info is coming from, and empphoto is the field which displays/contains the employee number.
Am I on the right track? How do I label my pictures or get this to work?!?
THANK YOU!
Max
A) Differentiate between them. I.E. give each one a different name or label so I can refrence then in an algorithm.
B) Make an if/then statement that reads if the employee number is x, make picture x appear, else make it disappear.
So the code lay out is something like:
if ( empbasic.empphoto = 3204) then
{
3204.supressed = false;
}
else
{
3204.supressed = true;
}
*Note: empbasic is the database where the employee info is coming from, and empphoto is the field which displays/contains the employee number.
Am I on the right track? How do I label my pictures or get this to work?!?
THANK YOU!
Max