Atomic Shrimp
Humanoid lifeform
- Local time
- Today, 04:43
- Joined
- Jun 16, 2000
- Messages
- 1,954
I've got a datasheet subform on a tab page on a form. I don't want users to be able to add or delete records from the data, so I set both the AllowAdditions and AllowDeletions properties to 'No'
When I open the form and navigate to the tab where the datasheet subform appears, I *am* able to add and delete records.
I've checked my code and there's nothing in there I can see that could be setting it back to True, but when I debug.print the value of the subform's allowadditions and allowdeletions properties, they're 'True'
So I added a couple of lines in the form load event, explicitly setting the properties to False, which seemed to work, but one of my testers was still able to add and delete records.
What's going on here? What, besides an explicit assignment of the properties, can cause this behaviour in a subform that has (in design mode) the AllowAdditions and AllowDeletions properties set to 'No'?
When I open the form and navigate to the tab where the datasheet subform appears, I *am* able to add and delete records.
I've checked my code and there's nothing in there I can see that could be setting it back to True, but when I debug.print the value of the subform's allowadditions and allowdeletions properties, they're 'True'
So I added a couple of lines in the form load event, explicitly setting the properties to False, which seemed to work, but one of my testers was still able to add and delete records.
What's going on here? What, besides an explicit assignment of the properties, can cause this behaviour in a subform that has (in design mode) the AllowAdditions and AllowDeletions properties set to 'No'?