example:-
Code: Select all
Dim VarianceString As String
Dim Varian1 As Long
linetxt = the string im reading in.
VarianceString = Mid(linetxt, 108, 14)
Varian1 = CLng(Nz(VarianceString, 0))
but after the conversion, Varian1, would be 3220.
I'm then storing Varian1, in a table.
I've tried setting the table properties to have 4 decimal places. and i've looked at the different date conversion Cxxx, the only one that seems to have the right decimal places, is CCUR, which is for currencies.
how do i get it , so that i put exactly that number, as read by the string, into my table ?