Results 1 to 4 of 4
  1. #1
    arthurpenske is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2011
    Posts
    7

    Creating unique record from record and field data

    I currently have a table where each record is a different contract, and the fields are various parameters of that contract, like this:

    Contract Name | Flat Rate ($$) | Monthly Fee ($$) | Annual Fee ($$)

    I think the data will be more compatible with other tables in my database if there is a unique record for each part of the contract, organized some way like this:

    Contract Name | Parameter (Flat rate, monthly fee, etc.) | $$ amount




    Can anyone think of an easy way to do this? Or any other suggestions? The data is in this format because I'd like to be able to enter each contract into the table from a form, so if you can think of a better way to input the data that would be useful as well.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You wouldn't use the contract name you'd use a primary key field

    for instance

    Code:
    tblContracts
    ContractID ContractName -----> other fields
    
    tblFees
    FeeID FeeName
    1     Annual
    2     Flat
    ... etc
    
    tblContractFees
    CTID ContractID FeeID FeeAmt
    So you'd set up a form for your contracts, and in that form you'd have a subform that handled the contract fees (i'm assuming you can have multiple fees for each contract) If you link the two tables on the contractID the only thing you'll have to enter on the subform is the fee ID (if you use a combo box you can just type in the name of the fee and have it store the ID) and the fee amount.

  3. #3
    arthurpenske is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2011
    Posts
    7
    Thank you- I think that should work for new data entry. Do you have any suggestions for converting old data in the table I gave above?

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Well, you'd have to create the tables to properly normalize (I do not know your data structure, table names, field names, anything so I can't give you anything other than general instructions) Then create an APPEND query that will take your existing data and correctly update the normalized table. In your case you are only reporting three different types of rates (Flat, Monthly, Annual) so you'd have to do three different appends the non zero amounts to your table.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Unique table per record?
    By Poepol in forum Access
    Replies: 8
    Last Post: 06-11-2011, 10:31 AM
  2. Make command buttons unique to a record
    By timmy in forum Forms
    Replies: 26
    Last Post: 03-09-2011, 09:51 AM
  3. Repeating data in a field for a new record
    By NOTLguy in forum Forms
    Replies: 3
    Last Post: 10-29-2010, 07:27 PM
  4. lost - linking date field based on a record with smaller Unique ID
    By stan.chernov@gmail.com in forum Queries
    Replies: 7
    Last Post: 09-16-2010, 02:22 PM
  5. Unique Record Identifier for MS SQL Server Tables
    By MGSP in forum Import/Export Data
    Replies: 2
    Last Post: 01-29-2006, 03:00 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums