Deltaflyer
Programmer
I am trying to insert a row into an Access table, but i keep getting this error,
Run-Time Error 3011
The microsoft jet db engine could not find the object 'insert into details (wkstkarea), ('DBArea1')'.
Here id my coding :
Dim db As Database
Dim rs As Recordset
Dim sql As String
Open App.Path + "\dblocation.fil" For Input As #1
Line Input #1, dblocation
Close #1
sql = "insert into details (wkstkarea), ('" & Combo1.Text & "')"
Set db = Workspaces(0).OpenDatabase(dblocation+ "\vbft.mdb"
Set rs = db.OpenRecordset(sql, 1)
rs.Close
Set rs = Nothing
Any ideas what wrong with it? DeltaFlyer
The Only Programmer To Crash With Style. LOL
Run-Time Error 3011
The microsoft jet db engine could not find the object 'insert into details (wkstkarea), ('DBArea1')'.
Here id my coding :
Dim db As Database
Dim rs As Recordset
Dim sql As String
Open App.Path + "\dblocation.fil" For Input As #1
Line Input #1, dblocation
Close #1
sql = "insert into details (wkstkarea), ('" & Combo1.Text & "')"
Set db = Workspaces(0).OpenDatabase(dblocation+ "\vbft.mdb"
Set rs = db.OpenRecordset(sql, 1)
rs.Close
Set rs = Nothing
Any ideas what wrong with it? DeltaFlyer
The Only Programmer To Crash With Style. LOL