PC Review


Reply
Thread Tools Rate Thread

Deleting/Creating a relationship between two tables -----> Help Pl

 
 
FatMan
Guest
Posts: n/a
 
      20th May 2010
Hi all:
I would like to know how to break and create a relationship between two
tables.

I have created a database to handle the capturing of out inventory stock
count/take. Part of the setup routine is creating tables in the database
from the tables in our accounting system. I must recreate them each time the
database is used to capture the current inventory levels as well as any new
items created since our last inventory count from our accounting system. In
order for me to do this I must manual remove the relationships between the
two tables, run the set up program to create the tables, and then create the
relationship between the two tables. This is not a big deal for me to do but
someone that has less experience with Access the deleting and creating of the
relationships can be quite daunting.

The table names are tblInvMaster with a primary key of StockCode and
tblInvCapture with a foreign key of StockCode. The relationship is a one to
many relationship with the one being the tblInvMaster and the many being
tblInvCapture. I do enforce Referential Integrity but do not do any cascade
deletes/updates.

Can someone please show me the code to delete and create a relationship
between two tables based on the above info. Any and all help is greatly
appreciated.

Thanks,
FatMan

 
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
code for creating a relationship between all tables in db Boulder_girl Microsoft Access VBA Modules 4 1st May 2009 06:50 PM
SQL Server 2005: Creating a relationship between two tables weird0 Microsoft C# .NET 1 17th Feb 2007 02:43 PM
creating/defining relationship between two tables =?Utf-8?B?R2l6?= Microsoft Access Getting Started 2 18th Apr 2005 09:24 PM
Creating a master-details relationship between 3 tables mkidd Microsoft ADO .NET 4 25th Feb 2005 05:53 PM
Creating a Form bounded to three tables with one-to-one relationship Rony Boter via AccessMonster.com Microsoft Access Forms 1 29th Dec 2004 02:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 PM.