how to get a click event not a focus event?

  • Thread starter FilemakerPro_Developer
  • Start date
F

FilemakerPro_Developer

1. How do I get a button that has a click_() event not a focus_() event? I
use the tool to get a command button but it doesn't appear to have a click
event? I don't know what the focus event is all about? I just want to print
a report.
 
K

Ken Sheridan

Janis:

What 'tool' did you use? If you drag a command button control from the
'Toolbox' toolbar onto a form in design view it should have a Click event
property and GotFocus and LostFocus event properties amongst others. The
latter two events execute when focus is moved to or away from a control.

The Click event procedure is the default procedure of a command button
control, so if you right click on the control in design view and select Build
Event from the short-cut menu the VBA window should open at the control's
Click event procedure. You can then enter your code:

DoCmd.OpenReport "YourReportNameGoesHere"

Ken Sheridan
Stafford, England
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top