Lock Subform Query

wtrimble

Registered User.
Local time
Today, 13:40
Joined
Nov 13, 2009
Messages
177
I have a query subform on a form I have, with combo boxes that filter it. I have the query locked so that no changes can be made to query, however, the user is still able to delete records from the query for some odd reason. I have to keep it "enabled" because the user needs to scroll right and left in the query.

Any suggestions on how to disable records from being able to be deleted??

Thanks
 
Check out the form's Allow Deletions property.
 
Allow Edits was it, Thanks
 
Wait nevermind, neither of those works. Disallowing edits disables my combo boxes. Is there any solution?
 
In the form your subform is based on use this:
Code:
Private Sub Form_Delete(Cancel As Integer)
  Cancel = True
End Sub
 
That still doesn't work, seems that the query-subform is it's own identity and doesn't abide by Form properties
 
The subform has it's own properties and events. That's where the Allow Deletions should be set to no.
 
The query doesn't have those property options. Just locked and enabled.
 
Can you post the db?
 

Users who are viewing this thread

Back
Top Bottom