open form as read only but allow filters

Misiek

Registered User.
Local time
Today, 19:27
Joined
Sep 10, 2014
Messages
248
Hello,

I have a button that open a form
Code:
 DoCmd.OpenForm FormName, , , , acFormReadOnly

form opens as read only and everything is as it should be.

In the footer of this form I have filters and I need to be able to use them.

Is it possible to have form opening in read only for DETAIL section but allow to apply filters in FOOTER section?

Thanks
 
If the form is always going to be set up this way, why not try this:
Set the properties of the Form:
Allow Additions = No
Allow Deletions = No
Allow Edits = No

and then set the property:
Allow Filters = Yes
 
Yes that could work but I use this form couple of times with different preferences so can't do it.
Any other possibilities?
 
instead of just setting allowedits = false, (which is a bit of a blunt instrument) iterate the controls and make the text boxes etc enabled/locked as necessary. that way the filter will still work.

alternatively maybe you can put the filter instruction on a button click.
 

Users who are viewing this thread

Back
Top Bottom