command buttons (problem)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 command buttons which are on a form. One is to
clear info I have which works, however when I added the
second command button which when clicked will go back to
the main menu, the first one does not work. For some
reason they do not work together. What can I do?
 
I have 2 command buttons which are on a form. One is to
clear info I have which works, however when I added the
second command button which when clicked will go back to
the main menu, the first one does not work. For some
reason they do not work together. What can I do?

To start you can describe what "...does not work." means.

Do you get an error? Does smoke billow out from the PC? :-)

There should be no reason for the addition of a new button to cause the
first one to suddenly operate differently (or not at all). Can you tell if
the code behind the first button is even executing? Did you cut and paste
it by any chance? That will cause the button to lose the "[Event
Procedure]" property setting and the code will no longer execute until you
put that back.
 
Does not work, meaning it does not execute, nothing
happens, no error message. I click the first macro which
is to print, data prints. Then I click the next button
which is to clear the info, the info does not clear,
nothing happens. When I take off the print button it
works fine. I did not copy and paste anything.
-----Original Message-----
I have 2 command buttons which are on a form. One is to
clear info I have which works, however when I added the
second command button which when clicked will go back to
the main menu, the first one does not work. For some
reason they do not work together. What can I do?

To start you can describe what "...does not work." means.

Do you get an error? Does smoke billow out from the PC? :-)

There should be no reason for the addition of a new button to cause the
first one to suddenly operate differently (or not at all). Can you tell if
the code behind the first button is even executing? Did you cut and paste
it by any chance? That will cause the button to lose the "[Event
Procedure]" property setting and the code will no longer execute until you
put that back.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


.
 
Does not work, meaning it does not execute, nothing
happens, no error message. I click the first macro which
is to print, data prints. Then I click the next button
which is to clear the info, the info does not clear,
nothing happens. When I take off the print button it
works fine. I did not copy and paste anything.

Post the code/macro of the clear button.

If you temporarily add a MsgBox line to the clear button code/macro does
the message box display? That would tell you if the click event was being
executed.
 
Back
Top