PC Review


Reply
Thread Tools Rate Thread

Changing the name of a table that then relates to a query

 
 
Aimee Proctor
Guest
Posts: n/a
 
      26th Jan 2010
I changed the name of a table that relates to a lot of queries.....these now wont work....how do i resolve this....thanks for ANY news!


Submitted via EggHeadCafe - Software Developer Portal of Choice
ADO.NET Recursive Hierarchical DataSet Technique
http://www.eggheadcafe.com/tutorials...e-hierarc.aspx
 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      26th Jan 2010
1. Change the table name back to its orginal name.

2. Download Rich Fisher's excellent Find and Replace add-in and change
everything to match the new table name. If you register it (one of the best
$37 I've ever spent), the cross-reference report can find what queries use
which reports and forms. It's a good way to find orphans.
http://www.rickworld.com/

3. Enable Name Autocorrect so that you won't have this problem in the
future. However Name Autocorrect is often a problem and I don't recommend
using it.

4. Remember that changing the name of a table, field in a table, query, and
possibly even forms and reports can cause this problem. It's better to get
the names right in the first place or don't mess with them.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Aimee Proctor" wrote:

> I changed the name of a table that relates to a lot of queries.....these now wont work....how do i resolve this....thanks for ANY news!
>
>
> Submitted via EggHeadCafe - Software Developer Portal of Choice
> ADO.NET Recursive Hierarchical DataSet Technique
> http://www.eggheadcafe.com/tutorials...e-hierarc.aspx
> .
>

 
Reply With Quote
 
Piet Linden
Guest
Posts: n/a
 
      28th Jan 2010
On Jan 26, 8:29*am, Aimee Proctor wrote:
> I changed the name of a table that relates to a lot of queries.....these now wont work....how do i resolve this....thanks for ANY news!
>
> Submitted via EggHeadCafe - Software Developer Portal of Choice
> ADO.NET Recursive Hierarchical DataSet Techniquehttp://www.eggheadcafe.com/tutorials/aspnet/f492b744-8326-4671-a7c3-9...


loop through the Querydefs collection and use the Replace function to
modify the SQL property might work...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate Changing Table Name in Query =?Utf-8?B?QmlsbHlSb2dlcnM=?= Microsoft Access Form Coding 5 21st Mar 2007 05:39 AM
Query that relates to a Pie Graph 72185 Microsoft Access 0 2nd Aug 2006 02:58 PM
Query with changing table names Steve Roberts Microsoft Access ADP SQL Server 2 27th Oct 2005 10:07 PM
One Table Relates to Many Fields In Other Table =?Utf-8?B?TXVycA==?= Microsoft Access Database Table Design 1 31st Mar 2005 02:55 AM
Re: Question on Query table name changing John Vinson Microsoft Access 1 17th Sep 2004 10:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 AM.