A
AccessHelp
Hello all,
I have a form to delete records (using a delete query) from a table. Below
is a sample code that I use to append the records to another table, delete
them and refresh the form to remove the deleted records off the form when the
user click on the button on the form.
docmd.setwarnings false
docmd.openquery "Append_Query",acViewNormal, acEdit
docmd.openquery "Delete_Query",acViewNormal, acEdit
Me.Refresh
For some reason, when I click on the records, the records are appended and
deleted. However, the records are still showing on the form with "#Delete"
in the fields. I thought when I use the code "Me.Refresh", it would remove
the deleted records from the form.
Am I missing something? How can I do to remove the deleted records from the
form, instead of showing on the form with "#Delete"?
Thanks.
I have a form to delete records (using a delete query) from a table. Below
is a sample code that I use to append the records to another table, delete
them and refresh the form to remove the deleted records off the form when the
user click on the button on the form.
docmd.setwarnings false
docmd.openquery "Append_Query",acViewNormal, acEdit
docmd.openquery "Delete_Query",acViewNormal, acEdit
Me.Refresh
For some reason, when I click on the records, the records are appended and
deleted. However, the records are still showing on the form with "#Delete"
in the fields. I thought when I use the code "Me.Refresh", it would remove
the deleted records from the form.
Am I missing something? How can I do to remove the deleted records from the
form, instead of showing on the form with "#Delete"?
Thanks.