Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 11:40 AM
BerkshireGuy
Guest
 
Posts: n/a
Default Closeing MSQuery Window from Access

Is there any way that I can close an MsQuery Window by VBA?

I have code with some DDE commands that opens an MSQuery and executes a
query. That opens a window called Query1 in MsQuery. I want to be able
to close the Query1 window in Msquery without closing MsQuery itself.

Thanks
Brian

  #2  
Old November 13th, 2005, 11:40 AM
colleen
Guest
 
Posts: n/a
Default Re: Closeing MSQuery Window from Access



BerkshireGuy wrote:[color=blue]
> Is there any way that I can close an MsQuery Window by VBA?
>
> I have code with some DDE commands that opens an MSQuery and executes a
> query. That opens a window called Query1 in MsQuery. I want to be able
> to close the Query1 window in Msquery without closing MsQuery itself.
>
> Thanks
> Brian[/color]

  #3  
Old November 13th, 2005, 11:40 AM
colleen
Guest
 
Posts: n/a
Default Re: Closeing MSQuery Window from Access

You can use docmd.Close acQuery, "queryname". You can also open the
query in a recordset so that you can use the data behind the scenes. I
am not sure what you are trying to do.

  #4  
Old November 13th, 2005, 11:41 AM
BerkshireGuy
Guest
 
Posts: n/a
Default Re: Closeing MSQuery Window from Access

Thanks Collen,

MSquery is a seperate application that I am opening with access using
DDECommands. However, I cannot figure how to close it out without the
user click on the X button.

-Brian

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles