open form as read only but allow filters (1 Viewer)

Misiek

Registered User.
Local time
Today, 20:30
Joined
Sep 10, 2014
Messages
249
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
 

Wiggi.exe

New member
Local time
Today, 21:30
Joined
Sep 10, 2015
Messages
1
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
 

Misiek

Registered User.
Local time
Today, 20:30
Joined
Sep 10, 2014
Messages
249
Yes that could work but I use this form couple of times with different preferences so can't do it.
Any other possibilities?
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 21:30
Joined
Sep 12, 2006
Messages
15,696
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

Top Bottom