G
Guest
I have a form that lists data from a table in Continuous Forms view. On the
form are two buttons that apply the "Filter On" and "Filter Off" functions to
the data field the user has the cursor placed over. Recently I have been
encountering a problem where the user, when they click on the "Filter Off"
button, Microsoft Access encounters an "error" and closes. (then it asks the
user to save, compact and repair, etc) The only remarkable thing that strikes
me is that I have admin priveleges and the users have a "Team Member"
privelege profile with limited access to the database. Is there some
setting/change that could be causing this to happen? Is the code I have
running on the "Click" event poorly executed? Below is the code I am using
for each button: TIA
For Filter On Button:
Private Sub Command25_Click()
Screen.PreviousControl.SetFocus
DoCmd.RunCommand acCmdFilterBySelection
End Sub
For Filter Off Button:
Private Sub Command26_Click()
DoCmd.RunCommand acCmdRemoveFilterSort
End Sub
form are two buttons that apply the "Filter On" and "Filter Off" functions to
the data field the user has the cursor placed over. Recently I have been
encountering a problem where the user, when they click on the "Filter Off"
button, Microsoft Access encounters an "error" and closes. (then it asks the
user to save, compact and repair, etc) The only remarkable thing that strikes
me is that I have admin priveleges and the users have a "Team Member"
privelege profile with limited access to the database. Is there some
setting/change that could be causing this to happen? Is the code I have
running on the "Click" event poorly executed? Below is the code I am using
for each button: TIA
For Filter On Button:
Private Sub Command25_Click()
Screen.PreviousControl.SetFocus
DoCmd.RunCommand acCmdFilterBySelection
End Sub
For Filter Off Button:
Private Sub Command26_Click()
DoCmd.RunCommand acCmdRemoveFilterSort
End Sub