Hello,
I have a couple of declared variables
what I am trying to do now is to declare a new variable
with an if statement
I have tried
but that gives me an error
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/myfile.asp, line 54, column 6
hrs = if tbc= 3 then runlab/1000 elseif tbc=4 then runlab/10000 elseif tbc="P" then 1/runlab end if
-----^
any help is greatly appreciated!!!!!
I have a couple of declared variables
Code:
mo= rs("month")
dy= rs("day")
dpt= rs("dptno")
tbc= rs("tbcod")
runlab = rs("runlabor")
with an if statement
I have tried
Code:
hrs = if tbc= 3 then runlab/1000 elseif tbc=4 then runlab/10000 elseif tbc="P" then 1/runlab end if
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/myfile.asp, line 54, column 6
hrs = if tbc= 3 then runlab/1000 elseif tbc=4 then runlab/10000 elseif tbc="P" then 1/runlab end if
-----^
any help is greatly appreciated!!!!!