You do not need two buttons. The code should work. If it doesn't, having
two buttons (or two boxes that look like buttons) is not going to solve
anything.
Comment out the Me.ComQry line of code (remove the breakpoint first), so
that you just have the message box. Click the button. You should see the
message box. If not, go to the Event tab on the button's property sheet,
and verify that you see "Event Procedure" next to the Click event. If you
see it, click the three dots and verify that it takes you to the correct
code. If you do not see it, select Event Procedure for the Click event. If
the code appears, compile and close the VBA window. If there is no code,
that is of course the problem.
Some more things to try:
Try changing your message box line of code to:
MsgBox Me.ComQry.Visible
It should return either True or False
In form design view, there is on the Formatting toolbar a window with a
drop-down arrow. It is the leftmost item on the toolbar by default, I
believe. It lists all of the controls on the form. If ComQry is on the
list, click it and note what is selected on the form.