G
GLT
Hi,
I have some code that tests two string varibles (strFeild1 and strFeild2) -
both are declared as string varibles.
When I step through this code, and both strings are equal to the first
condition which is (strFeild = "Totals For" and strFeild2 = "Job"), then it
gets ignored and jumps to the second condition.
I am printing the debug lines as I step through the code, and when I hover
the mouse over each feild, when the values are "Totals For" and "Job", it
still will not get picked up by the correct condition testing...
The code below is a cut down version of the code I am using...
If (strFeild1 = "Totals For") And (strFeild2 = "Job") Then
Debug.Print strFileNo & " " & strFeild1 & " " & strFeild2
<Execute some VB>
ElseIf (strFeild1 = "Totals For") And (strFeild2 <> "Job") Then
Debug.Print strFileNo & " " & strFeild1 & " " & strFeild2
<Execute some VB>
End If
Any help is always greatly appreciated...
Cheers,
GLT
I have some code that tests two string varibles (strFeild1 and strFeild2) -
both are declared as string varibles.
When I step through this code, and both strings are equal to the first
condition which is (strFeild = "Totals For" and strFeild2 = "Job"), then it
gets ignored and jumps to the second condition.
I am printing the debug lines as I step through the code, and when I hover
the mouse over each feild, when the values are "Totals For" and "Job", it
still will not get picked up by the correct condition testing...
The code below is a cut down version of the code I am using...
If (strFeild1 = "Totals For") And (strFeild2 = "Job") Then
Debug.Print strFileNo & " " & strFeild1 & " " & strFeild2
<Execute some VB>
ElseIf (strFeild1 = "Totals For") And (strFeild2 <> "Job") Then
Debug.Print strFileNo & " " & strFeild1 & " " & strFeild2
<Execute some VB>
End If
Any help is always greatly appreciated...
Cheers,
GLT