Hi
This is my code (essential pieces):
This piece of code almost works fine but when i check the value in my dataset i get '13' instead of '13.25'.
Does anyone know why i'm losing my digits after the comma?
Defining the dataset column 'netto' as a string-column is not an option because later i my code i need to sort the dataset on my column 'netto'.
thnx
This is my code (essential pieces):
Code:
dim rstop10 as adodb.recordset,netto as double
Set rstop10 = New ADODB.Recordset
With rstop10
.Fields.Append "netto", adDecimal, , adFldUpdatable
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
.Open
End With
netto = 13.25
rstop10.Addnew array("netto"),array(netto)
...
This piece of code almost works fine but when i check the value in my dataset i get '13' instead of '13.25'.
Does anyone know why i'm losing my digits after the comma?
Defining the dataset column 'netto' as a string-column is not an option because later i my code i need to sort the dataset on my column 'netto'.
Code:
rstop10.sort = "netto desc"
thnx