PC Review


Reply
Thread Tools Rate Thread

Closing a Module

 
 
=?Utf-8?B?SmltQg==?=
Guest
Posts: n/a
 
      3rd Jun 2005
How do I close a module (using code) that I opened using the Docmd.OpenModule
Method? There doesn't seem to be any corresponding close method. (Access
2000). When I open the module, it flashes onto the screen and then stays
open. Also, how to you keep from switching to the Visual Basic Window when
this happens?

JimB


 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      3rd Jun 2005
JimB wrote:

>How do I close a module (using code) that I opened using the Docmd.OpenModule
>Method? There doesn't seem to be any corresponding close method. (Access
>2000). When I open the module, it flashes onto the screen and then stays
>open. Also, how to you keep from switching to the Visual Basic Window when
>this happens?



Use DoCmd.Close acModule, modulename

I don't think there's a way to prevent the focus from
shifting to the module when you open it.

But, this is a pretty unusual thing to do. You are not
performing design time operations at runtime are you? If
you are, you should seriously reconsider your plan and find
another way to accomplish what ever you're trying to do.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
=?Utf-8?B?SmltQg==?=
Guest
Posts: n/a
 
      6th Jun 2005
I'm using the properties og the module for documentation functions (like
CountofDeclarationLines and ProcofLine) Is there a way do access these
properties without opening the module?

JimB

"Marshall Barton" wrote:

> JimB wrote:
>
> >How do I close a module (using code) that I opened using the Docmd.OpenModule
> >Method? There doesn't seem to be any corresponding close method. (Access
> >2000). When I open the module, it flashes onto the screen and then stays
> >open. Also, how to you keep from switching to the Visual Basic Window when
> >this happens?

>
>
> Use DoCmd.Close acModule, modulename
>
> I don't think there's a way to prevent the focus from
> shifting to the module when you open it.
>
> But, this is a pretty unusual thing to do. You are not
> performing design time operations at runtime are you? If
> you are, you should seriously reconsider your plan and find
> another way to accomplish what ever you're trying to do.
>
> --
> Marsh
> MVP [MS Access]
>

 
Reply With Quote
 
Marshall Barton
Guest
Posts: n/a
 
      6th Jun 2005
No there is not.
--
Marsh
MVP [MS Access]


JimB wrote:
>I'm using the properties og the module for documentation functions (like
>CountofDeclarationLines and ProcofLine) Is there a way do access these
>properties without opening the module?
>
>
>> JimB wrote:
>> >How do I close a module (using code) that I opened using the Docmd.OpenModule
>> >Method? There doesn't seem to be any corresponding close method. (Access
>> >2000). When I open the module, it flashes onto the screen and then stays
>> >open. Also, how to you keep from switching to the Visual Basic Window when
>> >this happens?

>>
>>

>"Marshall Barton" wrote:
>> Use DoCmd.Close acModule, modulename
>>
>> I don't think there's a way to prevent the focus from
>> shifting to the module when you open it.
>>
>> But, this is a pretty unusual thing to do. You are not
>> performing design time operations at runtime are you? If
>> you are, you should seriously reconsider your plan and find
>> another way to accomplish what ever you're trying to do.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2000 Error Closing - Module Outlib.dll Donald Leask Microsoft Outlook Discussion 1 4th Feb 2007 09:07 AM
error in closing database - Need to interrupt the module? =?Utf-8?B?VkJJbGxpdGVyYXRl?= Microsoft Access 0 2nd Feb 2007 06:31 PM
Closing Outlook cause an invalid page fault in module ..... Conrad Microsoft Outlook 0 31st Dec 2003 01:45 AM
Re: Access 2K, closing module after changes Larry Daugherty Microsoft Access 1 2nd Jul 2003 12:38 PM
Re: Access 2K, closing module after changes Allen Browne Microsoft Access 0 2nd Jul 2003 03:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 AM.