Switchboard Manager

J

JamesJ

I added an item to my switchboard to run a function
but it tells me it can't find the function. Spelling and
all has been double checked and are fine. The error number
is 2517.
It's a function to close the switchboard form and show the
DB window:

Function ShowDBWindow() As Integer

DoCmd.SelectObject acMacro, "Autoexec", True

End Function
 
J

JohnE

JamesJ, try adding this in your function;

DoCmd.Close acForm, "Switchboard"
SendKeys "{F11}", False

This should work.
*** John
 
J

JamesJ

Sorry, I'm running this function in the OnClose
of the form. The reason, I found out, it
couldn't find the procedure I should have
put just the function name without the = and ().
Just habit.

Thanks,
James
 

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