Jimgarry
MIS
- May 16, 2000
- 112
Thanks in advance,
I am opeing a access 97 database with DAO I want to select a tabel and delete all the records in the table
here is my code so far :
' remove data from the current salesin table
strSql = "DELETE Salesin.Salesman, Salesin.contact, Salesin.Company, Salesin.phone, Salesin.Ext, Salesin.stage, Salesin.closedt, Salesin.product, Salesin.units, Salesin.price, Salesin.amount, Salesin.prob FROM Salesin;"
Set db = OpenDatabase(strDBLocation)
Set rs = db.OpenRecordset("Salesin", dbOpenDynaset)
Set rs = db.OpenRecordset(strSql, dbOpenDynaset)
db.Close
I run this and get
"Runtime Error 3219"
"Invalid operaton"
Thanks again
Jim
I am opeing a access 97 database with DAO I want to select a tabel and delete all the records in the table
here is my code so far :
' remove data from the current salesin table
strSql = "DELETE Salesin.Salesman, Salesin.contact, Salesin.Company, Salesin.phone, Salesin.Ext, Salesin.stage, Salesin.closedt, Salesin.product, Salesin.units, Salesin.price, Salesin.amount, Salesin.prob FROM Salesin;"
Set db = OpenDatabase(strDBLocation)
Set rs = db.OpenRecordset("Salesin", dbOpenDynaset)
Set rs = db.OpenRecordset(strSql, dbOpenDynaset)
db.Close
I run this and get
"Runtime Error 3219"
"Invalid operaton"
Thanks again
Jim