Hi Guys,
I've got a problem that has kept me busy for quite some time now.
I'm not very fimiliar with Access and a bit fimiliar with Visual Basic 6
I've got a database that holds three tables.
1. Recipe
2. Component (A recipe consists of components)
3. TT_Recipe_Component (This table holds the link between a certain Recipe and it's components)
I use the following query to fill my recordset :
Now when I delete a record from that recordset, I would like the "delete" query to delete ONLY the link from the
TT_Recipe_Component table.
Instead of just doing that the query (cascades) also
deletes the Component from the Component table and the Recipe form the Recipe table.
How can I delete a record without having to create a new
recordset with a seperate connection to TT_Recipe_Component?
Linux IS userfriendly.
It's only very selective about who it's friends are.
I've got a problem that has kept me busy for quite some time now.
I'm not very fimiliar with Access and a bit fimiliar with Visual Basic 6
I've got a database that holds three tables.
1. Recipe
2. Component (A recipe consists of components)
3. TT_Recipe_Component (This table holds the link between a certain Recipe and it's components)
I use the following query to fill my recordset :
Code:
SELECT * FROM ((TT_Recipe_Component
LEFT JOIN Component ON TT_Recipe_Component.Component_NUMBER = Component.NUMBER)
LEFT JOIN Recipe ON TT_Recipe_Component.Recipe_NUMBER = Recipe.NUMBER)
WHERE TT_Recipe_Component.Recipe_NUMBER IN
(SELECT NUMBER FROM Recipe WHERE CODE = '" & Recipe_List.Code & "')

Now when I delete a record from that recordset, I would like the "delete" query to delete ONLY the link from the
TT_Recipe_Component table.
Instead of just doing that the query (cascades) also
deletes the Component from the Component table and the Recipe form the Recipe table.
How can I delete a record without having to create a new
recordset with a seperate connection to TT_Recipe_Component?
Linux IS userfriendly.
It's only very selective about who it's friends are.