debbie1212
Programmer
I have some code that I want to run only if a condition is met. The Request Location has to be the same as the User Location. I put the following code:
If (objFolderRequest.intReq_To_Loc = objUserLocation.intLocationID) Then
However it is going into the Else statement as if this condition isn't met. I even did a response write to make sure the condition is met:
Response.Write objFolderRequest.intReq_To_Loc & " = " & objUserLocation.intLocationID
It returns 102 = 102 so they are the same.
Since this condition is met, it should not jump to the Else statement.
I even checked the database to see if one of these fields has any spaces after the number but they don't.
Any ideas?
Thanks,
Debbie
If (objFolderRequest.intReq_To_Loc = objUserLocation.intLocationID) Then
However it is going into the Else statement as if this condition isn't met. I even did a response write to make sure the condition is met:
Response.Write objFolderRequest.intReq_To_Loc & " = " & objUserLocation.intLocationID
It returns 102 = 102 so they are the same.
Since this condition is met, it should not jump to the Else statement.
I even checked the database to see if one of these fields has any spaces after the number but they don't.
Any ideas?
Thanks,
Debbie