Form/Subform Question

S

Salisha Khan

Hey everyone,
I have a form and subform and on the main form I have a delete button.
This button was created with the command button wizard. When I click on the
delete button, I would like the entry on the main form and it's
corresponding entries on the subform to be deleted, but this doesn't happen.
The entry on the main form is deleted from the table, but the subform
entries are not deleted. How can I rectify this problem? What am i doing
wrong? Please help!
salisha
 
R

Rick Brandt

Salisha Khan said:
Hey everyone,
I have a form and subform and on the main form I have a delete button.
This button was created with the command button wizard. When I click on the
delete button, I would like the entry on the main form and it's
corresponding entries on the subform to be deleted, but this doesn't happen.
The entry on the main form is deleted from the table, but the subform
entries are not deleted. How can I rectify this problem? What am i doing
wrong? Please help!
salisha

You could define that you want cascading deletes in the tables relationships and then
the child records would be deleted automatically regardless of where you did the
deletion from.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top