![]() |
Close Switchboard Form
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" -- ca1358 |
Close Switchboard 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" -- - K Dales "ca1358" wrote: 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" -- ca1358 |
All times are GMT +1. The time now is 03:49 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com