What is the best way to present this argument?
I want A to equal anthing other than nothing and C<=B<D
(B is a date, C=Today's date and D = one week from today)
If A equal to something & b is between c&D, do #1
If A equal to something & B is not between c&d, do #2
If A is equal to nothing & B is between c&D, Do #3
If A is equal to nothing & B is not between c&d, Do #4
I have this
IF A="" and b=C or C<b<d then
Response.Write"<tr bgcolor=red>"
Else
If A="" then
Response.Write "<tr bgcolor= green>"
Else
If A<>"" and B=C or C<b<d then Response.Write "<tr bgcolor=yellow>"
Else
if rstDBEdit.Fields("Engineer"<>"" then
Response.Write"<tr>"
End If
End If
End If
WhenI do this I get a Error Type:
Microsoft VBScript compilation (0x800A040E)
'loop' without 'do'
/Projectlist.asp, line 370
Loop
my above code is contained within the loop. The Do is above this code and the loop which it is recognizing is after the above
Also when I comment the above code out everything works fine.
Trying to color certain rows in a table.
I want A to equal anthing other than nothing and C<=B<D
(B is a date, C=Today's date and D = one week from today)
If A equal to something & b is between c&D, do #1
If A equal to something & B is not between c&d, do #2
If A is equal to nothing & B is between c&D, Do #3
If A is equal to nothing & B is not between c&d, Do #4
I have this
IF A="" and b=C or C<b<d then
Response.Write"<tr bgcolor=red>"
Else
If A="" then
Response.Write "<tr bgcolor= green>"
Else
If A<>"" and B=C or C<b<d then Response.Write "<tr bgcolor=yellow>"
Else
if rstDBEdit.Fields("Engineer"<>"" then
Response.Write"<tr>"
End If
End If
End If
WhenI do this I get a Error Type:
Microsoft VBScript compilation (0x800A040E)
'loop' without 'do'
/Projectlist.asp, line 370
Loop
my above code is contained within the loop. The Do is above this code and the loop which it is recognizing is after the above
Also when I comment the above code out everything works fine.
Trying to color certain rows in a table.