Close Switchboard Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this piece of code that worked fine but I had the line to close the
Switchboard form and it doesnt work.

App.Application.docmd.closeform "Switchboard"

The Error states Object doesn't support this property or method.

Any help would be appreciated!

Code is has follows

'Open a form in Access
Dim App As Object
Set App = GetObject("\\Dtcnas-ilsp002\mandatory\Volume.mdb")


App.Application.docmd.closeform "Switchboard"
App.Application.docmd.openform "Form"
 
You might get better info in the Access group, but I think your problem is
that there is no docmd.closeform in Access; the proper form of the statment
would be:
App.Application.DoCmd.Close AcForm, "Switchboard"
 

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