Connecting Tech Pros Worldwide Help | Site Map

2003-Import of Queries with Relationships

  #1  
Old November 12th, 2005, 04:44 PM
Dave
Guest
 
Posts: n/a
We just shifted to Access 2003 at work.

I have a database that contains information that is updated each month with
another (source) Access file.

To update the fields in our database, I built (and used fine up till now) a
number of queries that copy the appropriate field contents and update the
fields in our database. This is done using a Unique_ID number common to
both.

I save the queries in a mock database, and import, then delete after use
each month (becuase it creates temp tables, and it cuts down on the clutter)

Now, when I import the query that contains a 1 to 1 relationship between
[NewTable].Unique_ID and [OldTable].Unique_ID, the relationship line in the
GUI seems to be lost each time. It used to import fine. I haven't tried
importing the query in SQL mode.

Is there a way to import this query while retaining the relationship?

Dave


  #2  
Old November 12th, 2005, 04:46 PM
Jeff Boyce
Guest
 
Posts: n/a

re: 2003-Import of Queries with Relationships


Dave

I'm not entirely clear -- are you creating an empty database and importing
queries to it because you are using "make table" queries ("because it
creates temp tables") and don't want the "bloat" in your regular database?

Your post mentioned updating fields -- why do you need temp tables to do
that? Does your import data change every time, so that there's nothing
common about the fields that you are updating (in which case, how do you
know which fields to update and how?!)?

Another approach might be to create a database and the tables to hold your
import data, then run your queries from your main database, using those
import tables as linked tables. Yet another approach might be to just use
queries to "massage" your data, on the way to updating.

Good luck

Jeff Boyce
<Access MVP>

  #3  
Old November 12th, 2005, 04:47 PM
Pieter Linden
Guest
 
Posts: n/a

re: 2003-Import of Queries with Relationships


Oh, major red herring. Relationships are stored in the database, not
in queries. I think MichKa has stuff on his website that lets you
"import" the relationships...

www.trigeminal.com
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cause Of Data File Corruption? Wayne answers 16 August 30th, 2008 04:15 AM
Access 2003 problem with wrong totals Dave answers 1 October 19th, 2007 02:35 PM
Finding optimal values using vba/queries Mike Heywood answers 1 February 7th, 2007 08:05 PM
MS Access Database with Remote Desktop - Multiple James answers 2 November 13th, 2005 02:22 PM
MS Access 2003 Runtime Environment Mike answers 1 November 13th, 2005 08:09 AM