A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I copy a SQL query from one database to another in Access 2



 
 
Thread Tools Display Modes
  #1  
Old December 30th, 2009, 04:23 PM posted to microsoft.public.access.queries
beancounter
external usenet poster
 
Posts: 9
Default How do I copy a SQL query from one database to another in Access 2


  #2  
Old December 30th, 2009, 05:06 PM posted to microsoft.public.access.queries
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default How do I copy a SQL query from one database to another in Access 2

On Wed, 30 Dec 2009 07:23:01 -0800, BeanCounter
wrote:

Access 2? That's so many versions behind I don't remember the details.
Check if DoCmd.CopyObject is available.

-Tom.
Microsoft Access MVP
  #3  
Old December 30th, 2009, 05:37 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default How do I copy a SQL query from one database to another in Access 2

Have you tried opening the second Access db and importing the query from the
first?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"BeanCounter" wrote in message
...



  #4  
Old December 30th, 2009, 05:53 PM posted to microsoft.public.access.queries
Dale Fye
external usenet poster
 
Posts: 2,651
Default How do I copy a SQL query from one database to another in Acce

Me too, Tom.

BeanCounter: There might also be a "get external data" option in one of the
menus that allows you select an Access file, and then browse the objects
within that file, select one or more, and import them into your current
database.

----
HTH
Dale



"Tom van Stiphout" wrote:

On Wed, 30 Dec 2009 07:23:01 -0800, BeanCounter
wrote:

Access 2? That's so many versions behind I don't remember the details.
Check if DoCmd.CopyObject is available.

-Tom.
Microsoft Access MVP
.

  #5  
Old December 31st, 2009, 04:55 AM posted to microsoft.public.access.queries
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default How do I copy a SQL query from one database to another in Access 2

"Jeff Boyce" wrote:

Have you tried opening the second Access db and importing the query from the
first?


BTW when I have to do this and it's only a few objects I open both
databases simultaneously and then drag and drop the objects from one
database container window to the other.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.