Passing an argument to a function from the Switchboard

J

Jeff Harbin

I have a series of reports that use the exact same code to generate
reports from data that is stored in a secondary database. Currently, I
have about 9 different sets of code that is duplicated because I cannot
pass an argument from the Switchboard. My goal is to have one single
function that I would pass a key work. The function would then generate
the appropriate report.

The switchboard manager allows you to assign code to a button but I have
been unsuccessful in passing an argument to the function. I've tried
doing it through macros and referencing the macro in the Switchboard
Manager but I'd like to do it properly if it's at all possible.

Thanks

Jeff
 

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