Results 1 to 2 of 2
  1. #1
    Merv is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    4

    Field Name problem

    I have an Access file that I need to name fields as follows:
    1A, 1B, 1C, 2A, 2B, 2C, ..... 51A,51B, 51C, 52A, 52B, 52C.
    These fields represent three values for each of the 52 weeks in the year. When I try to save the Table I get a message stating that I cannot have duplicate entries. There are no duplicate entries.


    What is the problem and what is the solution?

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I'm not sure what the naming problem is but the table structure is incorrect. The values you intend to store in the fields (1A, 1B, 1C, 2A, 2B, 2C, ..... 51A,51B, 51C, 52A, 52B, 52C) should be records in a table rather than in fields within 1 record. You have a many-to-many relationship between the week number and the 3 values (A,B,C). That should be represented with 3 tables

    tblWeekNo
    -pkWeekNoID primary key, autonumber
    -WeekNo

    tblValues
    -pkValueID primary key, autonumber
    -txtValue

    tblWeekValues (this is the junction table)
    -pkWeekValueID primary key, autonumber
    -fkWeekNoID foreign key to tblWeekNo
    -fkValueID foreign key to tblValues
    -thingyouwanttostore

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

Similar Threads

  1. NEW sql update HELP :( (time field problem)
    By ducthang88 in forum Programming
    Replies: 1
    Last Post: 12-05-2010, 12:03 AM
  2. Field ID Problem
    By MatN in forum Queries
    Replies: 8
    Last Post: 07-13-2010, 02:44 PM
  3. bigint field type problem
    By hakeem7777 in forum Access
    Replies: 0
    Last Post: 09-21-2009, 08:10 PM
  4. Problem with date field...
    By Rameez in forum Access
    Replies: 9
    Last Post: 06-23-2009, 10:29 AM
  5. Replies: 3
    Last Post: 06-03-2009, 07:15 AM

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