subfrom controls

H

Hasan

I wish to disable navigation buttons and Allow Edits of the subform from the Main form. I am using Access 97 and having trouble setting this up.

I do not want to pre set these in the subform as it will be used by users at different levels (ie standard agent and manager).... I wish for a manager to go in through a different screen to be able to edit etc.

Thanks in Advance for any help or suggestions

Hasan
 
D

Dirk Goldgar

Hasan said:
I wish to disable navigation buttons and Allow Edits of the subform
from the Main form. I am using Access 97 and having trouble setting
this up.

I do not want to pre set these in the subform as it will be used by
users at different levels (ie standard agent and manager).... I wish
for a manager to go in through a different screen to be able to edit
etc.

Try something like this:

With Me.NameOfSubformControl.Form
.NavigationButtons = False
.AllowEdits = False
End With

By "NameOfSubformControl", I mean the name of the control on the main
form that displays the subform. This may or may not be the same as the
name of the form object it displays.
 

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