Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21256

[RESOLVED] Deleting content from table. Error: "Object required"

$
0
0
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.

Viewing all articles
Browse latest Browse all 21256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>