I need to auto increment the last digit in the returned value of the following: (iLastRMA)
how do I do this, I also need to be able to reset this value daily. Is this even possible?
'** <begin code snip>
'** get iLastRMA from the database
sRMAnum = rsRMAEntry.Fields.Item("RMAnum"
.Value
'** remove all characters to the end of the initials: this is so we
'** can use the returned value to "auto increment" to the next RMA #
iLastRMA = Left(sRMAnum, 9)
'*** the finished RMA # in string format
sRMAstring = sTDate & Left(sRuser,1) & Right(sRuser,1) & CStr(CInt(iLastRMA + 1))
'** <end code snip>
FrOg 8) FrOg 8)
how do I do this, I also need to be able to reset this value daily. Is this even possible?
'** <begin code snip>
'** get iLastRMA from the database
sRMAnum = rsRMAEntry.Fields.Item("RMAnum"
'** remove all characters to the end of the initials: this is so we
'** can use the returned value to "auto increment" to the next RMA #
iLastRMA = Left(sRMAnum, 9)
'*** the finished RMA # in string format
sRMAstring = sTDate & Left(sRuser,1) & Right(sRuser,1) & CStr(CInt(iLastRMA + 1))
'** <end code snip>
FrOg 8) FrOg 8)