Hi
I'm very new to visual basic (doing some programming based on copy/paste from some code I've been handed).
I'm trying to clear a table (Plotdata) but I get the error "Object required". My code is as follows. The error occurs in the line marked with (*****)
Dim SQLquery As String
Dim db As DAO.Database
Set db = DBEngine.OpenDatabase(backendlink)
Dim Plotdata As DAO.Recordset
currentdb.Execute "DELETE * FROM Plotdata" (******)
Set Plotdata = db.OpenRecordset("Plotdata", dbOpenDynaset, dbAppendOnly)
I guess there is something fundamentally wrong and as I said: I'm totally green, so I excuse myself already.
Best regards.
I'm very new to visual basic (doing some programming based on copy/paste from some code I've been handed).
I'm trying to clear a table (Plotdata) but I get the error "Object required". My code is as follows. The error occurs in the line marked with (*****)
Dim SQLquery As String
Dim db As DAO.Database
Set db = DBEngine.OpenDatabase(backendlink)
Dim Plotdata As DAO.Recordset
currentdb.Execute "DELETE * FROM Plotdata" (******)
Set Plotdata = db.OpenRecordset("Plotdata", dbOpenDynaset, dbAppendOnly)
I guess there is something fundamentally wrong and as I said: I'm totally green, so I excuse myself already.
Best regards.