Running the code behind a Form using the SwitchBoard Manager

  • Thread starter Thread starter Marv Trott
  • Start date Start date
M

Marv Trott

Hi,

Thanks to the help I received from Duane and Fred I created a Form that
makes a table from a linked table, appends a second linked table to it, then
runs a report. This sequence is started by pressing the Form button.

How can I run the code behind this Form from a Switchboard button without
requiring that the Form button be depressed as an intermediate step?

The report program runs from a Switchboard created by the Switchboard
Manager

Thanks,

Marv
 
Hello Marv.

Marv said:
Thanks to the help I received from Duane and Fred I created a Form
that makes a table from a linked table, appends a second linked table
to it, then runs a report. This sequence is started by pressing the
Form button.
How can I run the code behind this Form from a Switchboard button
without requiring that the Form button be depressed as an
intermediate step?

If the code doesn't depend on the form, copy it into a function in a module
and add a "Run Code" switchboard command. The function could look like this:

Function DoMySequence()
' Paste your code here
End Function
 
Wolfgang,

It works perfectly.

Thanks,

Marv

Wolfgang Kais said:
Hello Marv.



If the code doesn't depend on the form, copy it into a function in a
module and add a "Run Code" switchboard command. The function could look
like this:

Function DoMySequence()
' Paste your code here
End Function
 

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

Back
Top