Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214

    Too Many Indexes


    I created a table and when I tried to save it, I got an error saying it was unable to save it because there are too many indexes in the table. When I checked the indexes, I only see 1. All of the fields are look up fields that have 2 choices that allow multiple values. Attached are pictures of the error messages and the indexed table. Any ideas?

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Could you explain your table definition a little. It looks more like data then fields

  3. #3
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    This table is going to be used to hold data that is a part of a subform that I want to add to a form that already exists. Attached shows how each lookup field is set up.

  4. #4
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Not exactly what I was looking for Let me ask a more specific Question.
    Based on your Data Structure Each Representative will have some value for every State in the US. Is this what you intend?

  5. #5
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    Yes, they will either be listed as AG or RA

  6. #6
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Ok, then in the design view at the top there is a button that lists all of the indexes. I can see that you only have the ID as the Primary but check the index list make sure it's the only index.

  7. #7
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Never mind missed the middle image in your original post.

  8. #8
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Sorry, don't have a clue.

  9. #9
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    I've been doing a little reading and it seems that all of my combo boxes create hidden indexes. I can't find how to get rid of them. Any ideas?

  10. #10
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    That's a new one on me. I wasn't aware that they did that.

  11. #11
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    First off I will state that your table is NOT a good setup. Those should be individual records, not columns.

    Get the table structure right first and THEN we can address the issue of getting the form to a way that you would like.

    The correct table structure would be

    tblStateReps
    StateRepID - Autonumber(PK)
    StateID - Long Integer (FK)
    RepID - LongInteger(FK)
    RepTypeID - LongInteger (FK)

    tblRepTypes
    RepTypeID - Autonumber (PK)
    RepType - Text

    And then you would have a record for each rep for each state.

  12. #12
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    Why would that be the correct set up?

  13. #13
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    That table structure you recommend doesn't look like it'll accomplish what I need. All I want to happen is to have this table be used for a subform in the Reps main form and I need to know whether they are listed as AG and/or RA (combo box - multivalue) in a specific state. My way seemed to be the easiest and most straightforward way to accomplish my goal.

  14. #14
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272

    Exclamation

    Quote Originally Posted by cbrsix View Post
    My way seemed to be the easiest and most straightforward way to accomplish my goal.
    And while it would APPEAR that way to the untrained eye. Those of us who have been working with relational databases (in my case for 14 years) are aware of the nightmare you face when you want to get any meaningful data back out.

    If you are just putting it in the form to look a specific way and are not planning on ever USING that data for other purposes then by all means you can go with your design. But if you are ever going to want to know anything like "which reps are AG in which states?", "which reps are RA in which states?" then my suggestion would be the way to go.

    The thing to realize is this. Making things easy on yourself for development usually has a direct correlation in that the easier you make it on yourself for developing usually means more work for the end user in the long run. Or more work for yourself in other areas.

    We can almost ALWAYS create a form to look like you want (even your original design) just by using some code to move data between the normalized and the not normalized display. But if you set it up non-normalized then you, and potentially others, are going to suffer for that.

  15. #15
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    Quote Originally Posted by boblarson View Post
    If you are just putting it in the form to look a specific way and are not planning on ever USING that data for other purposes then by all means you can go with your design. But if you are ever going to want to know anything like "which reps are AG in which states?", "which reps are RA in which states?" then my suggestion would be the way to go.

    Wouldn't be able to just run query from that table to see this specific information?

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Indexes limited
    By DanW in forum Access
    Replies: 6
    Last Post: 11-12-2009, 03:12 AM
  2. Table Indexes
    By AnthonyT in forum Access
    Replies: 3
    Last Post: 06-04-2009, 06:16 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