I have an insert statement that doesnt quite work right
**************
Dim strSQL As String
Dim antpost As Double
strSQL = "INSERT INTO shiftcalculations VALUES (1111, " & Me.Ant_PostShift & ", " & Me.sup_infShift & "," & Me.right_leftShift & ")"
CurrentDb.Execute strSQL
***************
It gets the value but rounds it of to the nearest whole number for example if the value is 6.4 it adds it to db as 6.0
I have set decimal places to 1 and this brings up the .0 but seems to be rounding off values before insert
any ideas
cheers
Nick
**************
Dim strSQL As String
Dim antpost As Double
strSQL = "INSERT INTO shiftcalculations VALUES (1111, " & Me.Ant_PostShift & ", " & Me.sup_infShift & "," & Me.right_leftShift & ")"
CurrentDb.Execute strSQL
***************
It gets the value but rounds it of to the nearest whole number for example if the value is 6.4 it adds it to db as 6.0
I have set decimal places to 1 and this brings up the .0 but seems to be rounding off values before insert
any ideas
cheers
Nick