I am trying to set up a delete button that will delete data from 4 tables
based on the Social Security Number. I have the relationships based from this
number. Any ideas.
Rick Brandt said:
Scott said:
I am trying to make a command button on one of my forms that will
search for a particular person in my table using last name
If you didn't get it to work yet then you can use 4 delete sql to run
Docmd.runSql "DELETE Table1Name.* FROM Table1Name WHERE [Social Security
Number] = " & [Social Security Number Parameter]
Docmd.runSql "DELETE Table2Name.* FROM Table2Name WHERE [Social Security
Number] = " & [Social Security Number Parameter]
Docmd.runSql "DELETE Table3Name.* FROM Table3Name WHERE [Social Security
Number] = " & [Social Security Number Parameter]
Docmd.runSql "DELETE Table4Name.* FROM Table4Name WHERE [Social Security
Number] = " & [Social Security Number Parameter]
If the parameter it string type the use that
Docmd.runSql "DELETE Table1Name.* FROM Table1Name WHERE [Social Security
Number] = '" & [Social Security Number Parameter] & "'"
Scott said:
Got another question for ya.
I am trying to set up a delete button that will delete data from 4 tables
based on the Social Security Number. I have the relationships based from this
number. Any ideas.
Rick Brandt said:
Scott said:
I am trying to make a command button on one of my forms that will
search for a particular person in my table using last name
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.