Hello, I'm using Access 2013
I have an unbound sub form that I'm populating with a SQL query in VBA by creating a querydef and passing it to the sub form source control. The sub form is shown in datasheet view. I had a user accidentally delete a record through the sub form, and I want to make sure that doesn't happen again. I tried setting the allow deletions property to "no" but that property doesn't show up in the sub form properties. It does show up in the main form but if I set that to "no" they can still delete a record through the sub form even though the main form is locked. I don't want to lock the sub form because people still need to edit values in the sub form, but I want to eliminate the chance of deleting any records with it.
Is there something I'm overlooking? I've tried searching the internet and have not had any luck finding anything.
Any help would be appreciated.
Thanks,
Rodney
I have an unbound sub form that I'm populating with a SQL query in VBA by creating a querydef and passing it to the sub form source control. The sub form is shown in datasheet view. I had a user accidentally delete a record through the sub form, and I want to make sure that doesn't happen again. I tried setting the allow deletions property to "no" but that property doesn't show up in the sub form properties. It does show up in the main form but if I set that to "no" they can still delete a record through the sub form even though the main form is locked. I don't want to lock the sub form because people still need to edit values in the sub form, but I want to eliminate the chance of deleting any records with it.
Is there something I'm overlooking? I've tried searching the internet and have not had any luck finding anything.
Any help would be appreciated.
Thanks,
Rodney
Comment