Crystal Designer 9
Database: Xtreme Sample Database 9
I'm having an issue with an "if then else statement" in one of my reports. The problem is when the YearHired doesn't equal 1991, it doesn't get evaluated. I recreated the formula using the Xtreme database, and I'm still having the problem.
Local NumberVar YearHired := Year({Employee.Hire Date});
If YearHired = 1991 then
if {Employee.Salary} > 75000 then
{Employee.Salary}+({Employee.Salary}*.10)
else if {Employee.Salary} <= 75000 then
{Employee.Salary}+({Employee.Salary}*.08)
else if {Employee.Salary} < 35000 then
{Employee.Salary}+({Employee.Salary}*.06)
Else
If YearHired = 1992 then
if {Employee.Salary} > 45000 then
{Employee.Salary}+({Employee.Salary}*.09)
else if {Employee.Salary} <= 45000 then
{Employee.Salary}+({Employee.Salary}*.07)
Else
If YearHired = 1993 then
if {Employee.Salary} > 55000 then
{Employee.Salary}+({Employee.Salary}*.09)
else if {Employee.Salary} >=30000 then
{Employee.Salary}+({Employee.Salary}*.06)
else if {Employee.Salary} < 30000 then
{Employee.Salary}+({Employee.Salary}*.04)
Else
If YearHired = 1994 then
if {Employee.Salary} > 70000 then
{Employee.Salary}+({Employee.Salary}*.10)
else {Employee.Salary}+({Employee.Salary}*.05)
Database: Xtreme Sample Database 9
I'm having an issue with an "if then else statement" in one of my reports. The problem is when the YearHired doesn't equal 1991, it doesn't get evaluated. I recreated the formula using the Xtreme database, and I'm still having the problem.
Local NumberVar YearHired := Year({Employee.Hire Date});
If YearHired = 1991 then
if {Employee.Salary} > 75000 then
{Employee.Salary}+({Employee.Salary}*.10)
else if {Employee.Salary} <= 75000 then
{Employee.Salary}+({Employee.Salary}*.08)
else if {Employee.Salary} < 35000 then
{Employee.Salary}+({Employee.Salary}*.06)
Else
If YearHired = 1992 then
if {Employee.Salary} > 45000 then
{Employee.Salary}+({Employee.Salary}*.09)
else if {Employee.Salary} <= 45000 then
{Employee.Salary}+({Employee.Salary}*.07)
Else
If YearHired = 1993 then
if {Employee.Salary} > 55000 then
{Employee.Salary}+({Employee.Salary}*.09)
else if {Employee.Salary} >=30000 then
{Employee.Salary}+({Employee.Salary}*.06)
else if {Employee.Salary} < 30000 then
{Employee.Salary}+({Employee.Salary}*.04)
Else
If YearHired = 1994 then
if {Employee.Salary} > 70000 then
{Employee.Salary}+({Employee.Salary}*.10)
else {Employee.Salary}+({Employee.Salary}*.05)