Chummly1984
Technical User
I am using this code, and am getting this error.
If Len(txtESNdec) = 18 Then
left10 = Left([txtESNdec], 10)
right8 = Right([txtESNdec], 8)
hexleft = Hex(left10)
hexright = Hex(right8)
hex_number = Format(hexleft, "00000000") & Format(hexright, "000000")
Me.txtESNhex = hex_number
End If
The Lexleft = Hex(left10) is the one causing the error. The txtESNdec is set to 268435456200770330 and the left10 variable shows 2684354562, but is the hex conversion limited to a particular size number?
thanks guys!
If Len(txtESNdec) = 18 Then
left10 = Left([txtESNdec], 10)
right8 = Right([txtESNdec], 8)
hexleft = Hex(left10)
hexright = Hex(right8)
hex_number = Format(hexleft, "00000000") & Format(hexright, "000000")
Me.txtESNhex = hex_number
End If
The Lexleft = Hex(left10) is the one causing the error. The txtESNdec is set to 268435456200770330 and the left10 variable shows 2684354562, but is the hex conversion limited to a particular size number?
thanks guys!