Do Not Allow Edits on a Query (1 Viewer)

bmcgree1

Registered User.
Local time
Today, 15:47
Joined
Jun 19, 2009
Messages
43
I swear I've done this before, but can't seem to be able to figure it out now. I'm trying to restrict the users from making edits to a query, either from changing the data already entered or from adding new records to the DB. I know how to do this in a form but how do I get it done in a query? Record locks don't work becuase I get this error saying one of my tables is open exclusively, even when it's not. Thanks
 

DCrake

Remembered
Local time
Today, 23:47
Joined
Jun 8, 2005
Messages
8,626
Don't know how you did it but some types of queries can become non updateable queries based on their construction, this is maybe what you are referring to.
 

vbaInet

AWF VIP
Local time
Today, 23:47
Joined
Jan 22, 2010
Messages
26,374
You really shouldn't be using a QUERY for data entry. In fact, your users shouldn't have access to it at all.

1. Use a form and set its Record Source property to that query
2. Set it's Default View property to Datasheet View.
3. Set the Allow Datasheet View to Yes and set all the other Allow views to No.
4. Set the Allow Additions, Allow Edits and Allow Deletions properties (on the Data tab) of the form to No.
 

Users who are viewing this thread

Top Bottom