G
Gina
Hi all.
trying to insert some data ... it works fine with:
'SQL2 = "INSERT INTO tblBill(Nu, Dat, Sum, Toll, All, WorkID)
VALUES ( 123, '03.03.2005', 200, 20, 220,5)"
but doesn't work when reading the data from the form:
SQL= "INSERT INTO tblBill(Nu, Dat, Sum, Toll, All, WorkID) VALUES
( "
SQL= SQL & int_ReNum & ", " & datBill & ", " & Me.txtSum
SQL= SQL & ", " & Me.txtToll & ", " & Me.txtAll
SQL= SQL & ", " & Me.WorkID & ")"
Nu = number
Dat = text (I changed it from date to text)
Sum,Toll,All = Currency
WorkID = number
I am getting an error '3346' telling me that the number of values in the
query and target fields wouldn't match ! ????
I've tried numerous ways since hours ... can't find the bug
any idea & help would be great !!
Thanks,
Gina
trying to insert some data ... it works fine with:
'SQL2 = "INSERT INTO tblBill(Nu, Dat, Sum, Toll, All, WorkID)
VALUES ( 123, '03.03.2005', 200, 20, 220,5)"
but doesn't work when reading the data from the form:
SQL= "INSERT INTO tblBill(Nu, Dat, Sum, Toll, All, WorkID) VALUES
( "
SQL= SQL & int_ReNum & ", " & datBill & ", " & Me.txtSum
SQL= SQL & ", " & Me.txtToll & ", " & Me.txtAll
SQL= SQL & ", " & Me.WorkID & ")"
Nu = number
Dat = text (I changed it from date to text)
Sum,Toll,All = Currency
WorkID = number
I am getting an error '3346' telling me that the number of values in the
query and target fields wouldn't match ! ????
I've tried numerous ways since hours ... can't find the bug
any idea & help would be great !!
Thanks,
Gina