In my DB(Ms Access 2003)I want to delete a record from 1 table which is linked to another table.
For ex- There are 2 tables "MasterType " which is the Master table & another table as "Sash DO" which is linked to this master table..Both the tables are linked by 1 common field as "Type"
I've designed a form with a TextBox in such a way that the user needs to enter the Type name which is to be deleted..
below is the vba code used in procedure to delete the particular Type.
After executing this it gives me an error "Runtime error 3061..Too many few parameters..Exp ected 1"
Can any one help with some solution for this...
Thanks in advance,
For ex- There are 2 tables "MasterType " which is the Master table & another table as "Sash DO" which is linked to this master table..Both the tables are linked by 1 common field as "Type"
I've designed a form with a TextBox in such a way that the user needs to enter the Type name which is to be deleted..
below is the vba code used in procedure to delete the particular Type.
Code:
Dim str As String Dim db As DAO.Database 'Application.Run "aouters" Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.OpenRecordset("Sash DO") str = "delete from Sash DO where Type='" & Me.[Text4] & "'" db.Execute (str) End Sub
Can any one help with some solution for this...
Thanks in advance,
Comment