J
Jay Chan
I would like to know if there is a way to disable a button when I am
in the middle of the event handler of the same button. MS Access
doesn't allow me to do this:
Private Sub cmdRemoveAll_Click()
...Remove all the stuffs from the list in the form...
Me![cmdRemoveAll].Enabled = False <---- This doesn't work
End Sub
What I am trying to do is:
- I have a form that has a list box.
- The form has a <Remove_All> button that the user can use
to remove all the items from the list box.
- I would like the button to be disabled when the list
is empty or when the user has used the <Remove_All>
button to remove all the items from the list.
How can I get around with this problem?
Thanks in advance for any info.
Jay Chan
in the middle of the event handler of the same button. MS Access
doesn't allow me to do this:
Private Sub cmdRemoveAll_Click()
...Remove all the stuffs from the list in the form...
Me![cmdRemoveAll].Enabled = False <---- This doesn't work
End Sub
What I am trying to do is:
- I have a form that has a list box.
- The form has a <Remove_All> button that the user can use
to remove all the items from the list box.
- I would like the button to be disabled when the list
is empty or when the user has used the <Remove_All>
button to remove all the items from the list.
How can I get around with this problem?
Thanks in advance for any info.
Jay Chan