And you do that through the properties associated with the Command Button.Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6997Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6997
If you have a function that you want run when the command button is clicked,
for instance, you would put the name of the function (complete with
parentheses), with an equal sign in front, in the box on the property sheet
beside On Click.
More common, though, is to set that property to [Event Procedure] (select it
from the combo box) and then click on the ellipsis (...) to the right. That
will take you into the VB Editor, into the Event Procedure associated with
the Click event of the button.
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
"Dean" wrote in message
> You don't assign modules, you assign a function or subroutine within a
> "Andibevan" wrote in message
> > Hi All,
> > Can someone tell me how I assign a module to a command button?
> > Thanks
> > Andy