davidi1
asked on
IF.., Then in ASP
Team -
I have a table in sql called "Goals" where i have the following columns & values
Goal - Varchar(255)
GoalTarget - Varchar(255)
PI1Value - Varchar(255)
PI1Symbol - Varchar(255)
Values:
Accuracy
98
97
>
I have another table in sql called "Goalsheet" where the following columns and values are updated.
Goalsheet
Goal - Varchar(255)
GoalAchieved - Varchar(255)
I want to do a If Then statement in asp
If Goalachieved & PI1Symbol & PI1Value Then
PIScore = 1
Else
....
End if
However I'm getting error. "Type mismatch: '[string: "98<97"]' "
Please help..,
any help from sql side also would be great, kindy help.
I have a table in sql called "Goals" where i have the following columns & values
Goal - Varchar(255)
GoalTarget - Varchar(255)
PI1Value - Varchar(255)
PI1Symbol - Varchar(255)
Values:
Accuracy
98
97
>
I have another table in sql called "Goalsheet" where the following columns and values are updated.
Goalsheet
Goal - Varchar(255)
GoalAchieved - Varchar(255)
I want to do a If Then statement in asp
If Goalachieved & PI1Symbol & PI1Value Then
PIScore = 1
Else
....
End if
However I'm getting error. "Type mismatch: '[string: "98<97"]' "
Please help..,
any help from sql side also would be great, kindy help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
used your method to create a Stored Proc..,
Open in new window