Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Close User Form Gazz_85[_2_] Excel Discussion (Misc queries) 1 July 8th 09 10:38 AM
HELP! - SWITCHBOARD NEEDED Sarah_Lecturer Excel Discussion (Misc queries) 1 December 8th 05 01:34 PM
Switchboard for excell Valearl Excel Discussion (Misc queries) 1 August 27th 05 05:50 AM
how to close a form in vba (not hide) Pierre[_16_] Excel Programming 3 July 15th 05 06:01 PM
Close Form with VBA William C. Smith Excel Programming 3 September 2nd 03 05:28 AM


All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"