I’m new with Access 2010 and need some help vid Visual Basic cod.
I have three forms FormA, FormB, FormC. They all have several sub forms. Each sub form contains a table. I want to handle the setting for this tables like the commando below… Lock the table for edit, deletion etc.
Because I have so many tables I want to put a sub routine in a module and use variables for the form name… to reuse the cod... Here I’m stuck.
If I use the code below everything works but I’m stuck to use variables for “Me”,” subform1” so it works…
Me.Subform1.Form.AllowAdditions = False
Me. Subform1.Form.AllowEdits = False
Me. Subform1.Form.AllowDeletions = False
Please help.
Regard
Ola A.
I have three forms FormA, FormB, FormC. They all have several sub forms. Each sub form contains a table. I want to handle the setting for this tables like the commando below… Lock the table for edit, deletion etc.
Because I have so many tables I want to put a sub routine in a module and use variables for the form name… to reuse the cod... Here I’m stuck.
If I use the code below everything works but I’m stuck to use variables for “Me”,” subform1” so it works…
Me.Subform1.Form.AllowAdditions = False
Me. Subform1.Form.AllowEdits = False
Me. Subform1.Form.AllowDeletions = False
Please help.
Regard
Ola A.