HELP.... I cannot get this to work..wtf am I doing wrong?
<code snip>
Dim iLastRMA
Dim sLastRMA
'** get iLastRMA from the database
iLastRMA = rsLastRMAnum_last
'** trim all the alpha characters from the returned value
'** ie.. 020102AH1 trimmed to "1"
iLastRMA = mid(iLastRMA, 8)
'** convert the string to an int and add "1" to the value
sLastRMA = CStr(CInt(iLastRMA + 1))
</code snip>
I keep getting VBScript runtime error:
Type mismatch: '[string: ""]'
What am I doing wrong.....
FrOg 8) FrOg 8)
<code snip>
Dim iLastRMA
Dim sLastRMA
'** get iLastRMA from the database
iLastRMA = rsLastRMAnum_last
'** trim all the alpha characters from the returned value
'** ie.. 020102AH1 trimmed to "1"
iLastRMA = mid(iLastRMA, 8)
'** convert the string to an int and add "1" to the value
sLastRMA = CStr(CInt(iLastRMA + 1))
</code snip>
I keep getting VBScript runtime error:
Type mismatch: '[string: ""]'
What am I doing wrong.....
FrOg 8) FrOg 8)