473,326 Members | 2,076 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,326 software developers and data experts.

Repoint all queries in mdb from an old table to a new table

Hi, I use Access2002 SP3. I have taken ownership of a mdb which I
would like to redesign. I want to repoint all current queries from a
daily table to a new historic table. There are over 30 queries
pointing at the old table. Does anyone know of a quick way to repoint
all the queries to a new table?
Regards
KC

Jun 8 '07 #1
2 1882
On Fri, 08 Jun 2007 03:14:07 -0700, KayC <ka******@yahoo.co.ukwrote:

If you know VBA you could write code to iterate over the queries
collection, get the SQL property, call Replace, and save.

If not, open each query in design view, switch to sql view, copy the
text in notepad, find & replace, and copy back.

-Tom.

>Hi, I use Access2002 SP3. I have taken ownership of a mdb which I
would like to redesign. I want to repoint all current queries from a
daily table to a new historic table. There are over 30 queries
pointing at the old table. Does anyone know of a quick way to repoint
all the queries to a new table?
Regards
KC
Jun 8 '07 #2
On 8 jun, 11:02, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Fri, 08 Jun 2007 03:14:07 -0700, KayC <kay_c...@yahoo.co.ukwrote:

If you know VBA you could write code to iterate over the queries
collection, get the SQL property, call Replace, and save.

If not, open each query in design view, switch to sql view, copy the
text in notepad, find & replace, and copy back.

-Tom.
Hi, I use Access2002 SP3. I have taken ownership of a mdb which I
would like to redesign. I whttp://groups.google.com/group/comp.databases.ms-access/browse_thread/thread/67a7b1ecce413b3d/2439079e5ed82d81#2439079e5ed82d81ant to repoint all current queries from a
daily table to a new historic table. There are over 30 queries
pointing at the old table. Does anyone know of a quick way to repoint
all the queries to a new table?
Regards
KC
If the old table won`t be used anymore, removing/renaming it to
something else, then naming a new query like

SELECT * FROM NEW_Table;

with the old table`s name would do the trick!
Jun 8 '07 #3

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
5
by: WertmanTheMad | last post by:
Ive been playing with this for a few days and thought I might thow it out for seggestions. I have Several Queries that need counts returned The Queries are Mutually Exclusive meaning whatever...
1
by: Roger Green | last post by:
I have inherited a complex database that has many dozens of queries that derive data from a people table. I now need to be able to run these queries (from within a significant number of forms)...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
3
by: Stephen | last post by:
It is possible to relate queries to tables, right? It seems logical but when I try to match my queries to any of the tables or even to each other it gives me a blank relationship. What could I...
5
by: Jerry Hull | last post by:
I'm working with a database developed by an untrained person over several years - and on a network that has recently been upgraded with a new server installed and MS office upgraded from 2K (I...
0
by: MHenry | last post by:
Hi, I know virtually nothing about creating Macros in Access. I would appreciate some help in creating a Macro or Macros that automatically run(s) 14 Queries (three Make Table Queries, and 11...
3
by: matthewemiclea | last post by:
I am trying to display information in Access on a form that takes information from many different queries and puts them together on a spreadsheet or chart. Some specific info: The information I...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.