S
Sandy Lee
I am not a programmer so this may be an easy question for you.
We have an Access DB that has records in table#1 (an internal table) to find a match on then Delete the records in table#2 (a linked table DB3). This worked with Access97 but now with Access2K we get error:
"RunTime error 3061: Too few parameters. Expected 1
Any ideas? Some of code (edited) is posted below
Thanks
Set Rst1 = dbs.OpenRecordset("OBJ2612", dbOpenTable, dbReadOnly
While Not Rst1.EOF ' <--- internal table#
FVNO = (Rst1!XBI1VNO
'*** below is linked table#2 to delete recs if match found **
strSQL = "SELECT * from DLTRFILE where XBI1VNO = '" + RstO.Fields(6).Value + "'
Set Rst2 = dbs.OpenRecordset(strSQL
While Not Rst2.EOF
Rst2.Delete
Rst2.MoveNex
Wen
Rst2.Clos
Set Rst2 = Nothin
Wen
--------------------------------------------------------
We have an Access DB that has records in table#1 (an internal table) to find a match on then Delete the records in table#2 (a linked table DB3). This worked with Access97 but now with Access2K we get error:
"RunTime error 3061: Too few parameters. Expected 1
Any ideas? Some of code (edited) is posted below
Thanks
Set Rst1 = dbs.OpenRecordset("OBJ2612", dbOpenTable, dbReadOnly
While Not Rst1.EOF ' <--- internal table#
FVNO = (Rst1!XBI1VNO
'*** below is linked table#2 to delete recs if match found **
strSQL = "SELECT * from DLTRFILE where XBI1VNO = '" + RstO.Fields(6).Value + "'
Set Rst2 = dbs.OpenRecordset(strSQL
While Not Rst2.EOF
Rst2.Delete
Rst2.MoveNex
Wen
Rst2.Clos
Set Rst2 = Nothin
Wen
--------------------------------------------------------