473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

maketable query and non-local database

Greetings all,

I have a split database with a number of maketable queries.
Up to now, these have been creating the associated table in the local
database
but now I want them to create the table in a specified destination database
(this may vary).

Rather than hand-editing each query, how do I change the destination
database of each query programatically?

My first though was to update the "Destination Database" property, as
displayed in the Query Properties popup.
However, I can't seem to locate where Access stores much of the information
displayed in this popup.

Analyzing the SQL property seems to show that the SELECT..IN..INTO is always
on the first line (the second being the FROM clause).
So, if I remove any present "INTO '...'" text from the end of the first line
and
append the desired destination, would work?

I'd rather use a more elegant method, but if this works, so be it.

Suggestions welcome.

Regards, Graham

Nov 13 '05 #1
1 1403
You should be able to use something like this:

SELECT MAIN.Id, MAIN.Name, MAIN.Publisher
FROM MAIN In "C:\Documents and
Settings\user\Desktop\Orange\RawImport1.mdb"
WHERE (((MAIN.Name) Like "C*") AND ((MAIN.Publisher) Is Not Null));

Oh hell, I'm so stupid. How about just linking to a new database (or
updating it) and then you can just query the linked tables....
otherwise, you'll have to edit all your SQL statements the hard way...
very ugly.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: hrishy | last post by:
Hi All I have the following query to be tuned.. Select distinct PA.PersonAddress_IDX, AT.Name AddressType, A.Line1 Address1, A.Line2 Address2, A.City, A.State, A.County, A.Country,...
14
by: Bob | last post by:
Hi there, Need a little help with a certain query that's causing a lot of acid in my stomach... Have a table that stores sales measures for a given client. The sales measures are stored per...
3
by: Jack A | last post by:
OK Guys. I'm fed up of the query below taking too much time. I CANT change the query since it is generated by a 3rd party product. I can change indexes and add new indexes though. The schema of...
22
by: Robert Brown | last post by:
suppose I have the following table: CREATE TABLE (int level, color varchar, length int, width int, height int) It has the following rows 1, "RED", 8, 10, 12 2, NULL, NULL, NULL, 20...
3
by: John Baker | last post by:
Hi: Can someone tell me how I remove a table from the system. I know there is a make-table query, that will create a table based on the query. However i cant find a way to REMOVE a table...
2
by: Apple | last post by:
I had create a query with one table and one query, and then create form with that query using wizard, but I can't append or edit data in that form & query. Please help!
3
by: PeteCresswell | last post by:
When writing to a work DB under C:\Documents and Settings\...., what is the best way to handle MakeTable queries? The only approaches I can think of are:...
2
by: Techhead | last post by:
I need to run a SELECT DISTINCT query across multiple fields, but I need to add another field that is NON-DISTINCT to my record set. Here is my query: SELECT DISTINCT lastname, firstname,...
1
by: shilpasharma | last post by:
Hi, Can anybody let me know how I can optimise following Query. Select * from reports where ( exists ( SELECT 1 FROM results_required rr, item_claims_trials ict, results res WHERE...
0
by: John | last post by:
I would like to put the content of a crosstab query into a table. I noticed that I can make a maketable query and base it on the crosstab query. Is there perhaps a shorter way to do this? Thanks,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.