linked tables in relationships

G

Guest

Hi!
I need a little (a lot?) help. I'm working in a database that someone else
built but I've been maintaining for a while. Now I want to add a field to a
table in our database. The tables are linked in relationships. What is the
best way to unlink these tables, make my changes and then relink? (I have
already made a copy and have been working in that so I don't blow up the real
thing.)
 
J

John W. Vinson

Hi!
I need a little (a lot?) help. I'm working in a database that someone else
built but I've been maintaining for a while. Now I want to add a field to a
table in our database. The tables are linked in relationships. What is the
best way to unlink these tables, make my changes and then relink? (I have
already made a copy and have been working in that so I don't blow up the real
thing.)

Open the Relationships window (the icon looks like three datasheets connected
by lines). Select the *join line* between the tables - not the table icon
itself! - and press the Delete key.

Change your table structure, open the relationships window again, and drag the
primary key fieldname from the "one" table to the foreign key fieldname in the
"many". Doublecheck that you have the right fields in the relationship data
popup window, and check Enforce Referential Integrity.

John W. Vinson [MVP]
 
G

Guest

That's how I originally tried to unlink the tables but it wouldn't let me.
Is that because I copied the database and saved it in a different location?
 
J

John W. Vinson

That's how I originally tried to unlink the tables but it wouldn't let me.
Is that because I copied the database and saved it in a different location?

That shouldn't do it. One question though: is this a split database with the
tables in a backend file and the application in a different .mdb file? If so,
you must open the backend database to change the relationships (or for that
matter the tables).

John W. Vinson [MVP]
 
G

Guest

Yes, that might be the case. So will your original directions work if I'm in
the backend files?
 
J

John W. Vinson

Yes, that might be the case. So will your original directions work if I'm in
the backend files?

Should... but they will emphatically *not* work if you're in the frontend of a
split app.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top