Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I call a routine in a Module from a button click

Status
Not open for further replies.

Tfrank

Technical User
Jun 19, 2001
30
US
I am trying to use the "How can I do an automated back-up of my attached Back-End Data?" code from the FAQ of this site. I have place the code in a module and it runs fine from in the design view of the module. When I press a button which calls the backup routine, I get the error can't find Macro "Call Backup". It is not a macro I am trying to run but a routine in a module. I am sure I am doing some thing simply wrong. Thanks for the help.

Tfrank


 
Take out the Call part, that might to do it.
Just put in Backup
 
Put this in the code window of your button


dim x as variant
x = yourfunctionmane()

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top