Properties of sub forms

  • Thread starter Rolf Rosenquist
  • Start date
R

Rolf Rosenquist

Did an attempt to set the property AllowDeletions for a sub form showed as a
data sheet. Did not work. But for the main form it works great. How can it
be done for the sub form? I really need it so the user don't do it by
accident, only the supervisor should be able to.

/ Rolf
 
A

Allen Browne

To refer to the form in the subform control, try this:

With Me.[NameOfYourSubformHere].Form
.AllowDeletions = False
.AllowEdits = False
End With
 
R

Rolf Rosenquist

Just the right thing. Works great!
Many thanks for your help.

/ Rolf


Allen Browne said:
To refer to the form in the subform control, try this:

With Me.[NameOfYourSubformHere].Form
.AllowDeletions = False
.AllowEdits = False
End With

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Rolf Rosenquist said:
Did an attempt to set the property AllowDeletions for a sub form showed as
a
data sheet. Did not work. But for the main form it works great. How can it
be done for the sub form? I really need it so the user don't do it by
accident, only the supervisor should be able to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top