Re: What should I set for Primary Key
- From: "accessuser via AccessMonster.com" <u28669@uwe>
- Date: Mon, 05 Mar 2007 17:33:27 GMT
User will import their Bank files (cleared items) to Bank table. and input
their own record (general ledger) items to Ledger table. Both tables have
same fields.
"Account #"
"Date"
"Check #"
"Amount"
"Description"
"Status"
User will run a command called "Match" and two files will run against each
other and list the ones that matches from both table, criteria based on check
# and amount.
The ones that do not match will be listed under "UnMatched"
I did some testing, and then i set the Bank table "Check #" as the primary
key,, and just let the Ledger Table have an ID primary key which doesn't do
anything for me. I dont know if i should delete it or just have a pk
assigned.
How do you set PKs for two tables with same field, and contain mostly the
same information?
Thanks.
BruceM wrote:
How is a record in one table associated with a record in another table?
Account number? If so, is the account number the primary key?
You may have heard that you can't create a relationship between two
autonumber fields, which is true for all practical purposes. I believe that
you can create a one-to-one relationship between two non-autonumber PK
fields, but your questions lead me to wonder how you go about entering data
into the two tables. Perhaps Bank and Ledger are standard terms with
specific meanings in accounting or something, but if so I am unfamiliar with
their usage. Are they intended to be identical tables that are being
reconciled by mean of double data entry, or something like that?
you can't link two primary keys, right? only primary key to foreign key,[quoted text clipped - 17 lines]
isn't it right??
Message posted via
AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/20...
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/200703/1
.
- Follow-Ups:
- Re: What should I set for Primary Key
- From: BruceM
- Re: What should I set for Primary Key
- References:
- What should I set for Primary Key
- From: accessuser via AccessMonster.com
- Re: What should I set for Primary Key
- From: Jason Lepack
- Re: What should I set for Primary Key
- From: accessuser via AccessMonster.com
- Re: What should I set for Primary Key
- From: BruceM
- What should I set for Primary Key
- Prev by Date: Re: What should I set for Primary Key
- Next by Date: Re: Import 1 record to many tables
- Previous by thread: Re: What should I set for Primary Key
- Next by thread: Re: What should I set for Primary Key
- Index(es):
Relevant Pages
|