I find myself in database A. I want to copy a query from Database B, rename the query toQueryNew aqnd send it to Database C.
Is it posssible ?
P.S. i mean sending it by code
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
copy database (Access 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » copy database (Access 2000)
- This topic has 5 replies, 3 voices, and was last updated 19 years, 10 months ago.
AuthorTopicWSsvetljop
AskWoody LoungerJune 10, 2005 at 2:07 am #420560Viewing 0 reply threadsAuthorReplies-
WScharlotte
AskWoody Lounger -
WSsvetljop
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSsvetljop
AskWoody LoungerJune 10, 2005 at 3:34 am #952679 -
WSHansV
AskWoody LoungerJune 10, 2005 at 6:16 am #952687It might be useful to copy a query from the current database to another database, but to copy from Database B to Database C is unusual. If Database B doesn’t have a startup form, you could try this:
Sub CopyQuery(DbSource As String, QrySource As String, _
DbTarget As String, QryTarget As String)
Dim objApp As New Access.Application
On Error GoTo ErrHandler
DoCmd.Echo False
objApp.OpenCurrentDatabase DbSource
objApp.DoCmd.TransferDatabase acExport, “Microsoft Access”, _
DbTarget, acQuery, QrySource, QryTargetExitHandler:
On Error Resume Next
objApp.Quit
Set objApp = Nothing
DoCmd.Echo True
Exit SubErrHandler:
MsgBox Err.Description, vbExclamation
Resume ExitHandler
End SubCall it like this:
CopyQuery “C:AccessdbA.mdb”, “QueryA”, “C:AccessdbB.mdb”, “QueryB”
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Clock missing above calendar in Windows 10 (Awaiting moderation)
by
WSCape Sand
24 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
5 hours, 53 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 minutes ago -
23 and you
by
Max Stul Oppenheimer
5 hours, 56 minutes ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 36 minutes ago -
April’s deluge of patches
by
Susan Bradley
5 hours, 56 minutes ago -
Windows 11 Windows Updater question
by
Tex265
14 hours, 7 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
21 hours, 2 minutes ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 1 hour ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
8 hours, 7 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
18 hours, 55 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 7 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 7 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 16 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 12 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
16 hours, 50 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
15 hours, 30 minutes ago -
Google One Storage Questions
by
LHiggins
2 hours, 8 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
6 hours, 44 minutes ago -
Ancient SSD thinks it’s new
by
WSila
21 hours, 26 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 7 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
6 hours, 10 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 15 hours ago -
Firefox 137
by
Charlie
17 hours, 50 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 days, 19 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 days, 19 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 days, 19 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 15 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 days, 23 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
3 days, 5 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.