Hi...I hope you can help!
I created an Access database that has a form with a subform. Everything has seemed to be fine until now, when a problem was detected with the reporting functionality. After much (!!!) investigation, I realized that there seems to be a problem with deletions. I think - though I'm not sure - that the problem arises when the user deletes the first record in the subform of a given form. I have also noticed that although I set the key field for the subform entries to be an autonumber, there are actually repeated autonumbers in my subform table.
I tried to delete the rows with the repeated (key field) autonumbers, but Access doesn't let me. It appears to, but they magically return.
I looked in the "subform table", and even though records do not appear in the subform after being deleted, they occasionally (not always) appear in the subform table.
However, there, all the fields contain "#Deleted" rather than a value. And, when I attempted to delete these rows from the table itself, it allowed me to do so, gave me the confirmation notice, and seemed to delete the "ghost" record. Yet, when I closed the table and then opened it again, the record appeared there once again with the "#Deleted" value in all the fields.
I think my queries are choking on this bad data when I try to run my reports, but I can seem to get rid of the bad data, no matter whether I delete the form or the subform entries.
I confirmed that the relationships were set up properly, so that you'd expect the proper cascading deletions of the subform. But that's not happening.
Please help!
Thanks very much,
Blaine
I created an Access database that has a form with a subform. Everything has seemed to be fine until now, when a problem was detected with the reporting functionality. After much (!!!) investigation, I realized that there seems to be a problem with deletions. I think - though I'm not sure - that the problem arises when the user deletes the first record in the subform of a given form. I have also noticed that although I set the key field for the subform entries to be an autonumber, there are actually repeated autonumbers in my subform table.
I tried to delete the rows with the repeated (key field) autonumbers, but Access doesn't let me. It appears to, but they magically return.
I looked in the "subform table", and even though records do not appear in the subform after being deleted, they occasionally (not always) appear in the subform table.
However, there, all the fields contain "#Deleted" rather than a value. And, when I attempted to delete these rows from the table itself, it allowed me to do so, gave me the confirmation notice, and seemed to delete the "ghost" record. Yet, when I closed the table and then opened it again, the record appeared there once again with the "#Deleted" value in all the fields.
I think my queries are choking on this bad data when I try to run my reports, but I can seem to get rid of the bad data, no matter whether I delete the form or the subform entries.
I confirmed that the relationships were set up properly, so that you'd expect the proper cascading deletions of the subform. But that's not happening.
Please help!
Thanks very much,
Blaine