Consulting

Results 1 to 16 of 16

Thread: Too many fields defined

  1. #1
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location

    Too many fields defined

    I just added 6 more fields to one of my tables to make a total of 22 fields in this table. When I try to edit my form to add these fields, it tells me "too many fields defined." This table is linked to another table that does not have more than 215. What should I do? I can't delete fields from the other table or I would lose data.

  2. #2
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    I don't have a short term solution for ya besides suggesting using the table analyzer to chop things up, but I would highly recommend reading up on normalization. http://support.microsoft.com/default...b;en-us;100139

  3. #3
    VBAX Tutor GaryB's Avatar
    Joined
    Jun 2004
    Location
    Stockton, California
    Posts
    270
    Location
    Just a thought on something you might try. I had this happen to me and it worked. I created a new form in design vew and did select all and a copy and paste from the old form to the new one and it solved the problem. Remember to relink to the same record source when you thry this. No promises, just an idea.

    Gary

  4. #4
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    Access has a memory for fields added and later removed. I can't remember all the details, but try comressing the database to clear it.
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

  5. #5
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    I tried doing the analyzer first and I got all the way to the end and it says "File sharing lock count exceeded. Increase MaxLocksPerFile registry entry."
    Never seen this before.

  6. #6
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    The default max is 9500. If you were doing this in code, then it would be easier to change, but you'll need to go into your registry and increase the value (if you want to use the table analyzer).

    http://support.microsoft.com/default.aspx?id=815281

  7. #7
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    Ok i changed it to 15000 but it still gives me the error.
    It would be so nice to be able to split the main table into smaller ones.

  8. #8
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    15000 isn't high enough then. Try 200000.

  9. #9
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    Will this actually remove the data from the main table and replace it into a new table?

  10. #10
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Yes, it removes fields and their corresponding data from a table and inserts them into another then links via a key. I can't remember if it creates a backup or not, so be sure you're working with a version that you can mess up.

  11. #11
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    I'm still getting the error -too many fields defined. I've tried all three solutions in this post.

  12. #12
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    And I have to change all queries to change the source to the new tables and I get the error "the setting for the LIstRows property must be from 1 through 255."

  13. #13
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Were you able to split your tables or not?

  14. #14
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Spaz, what's the 411?

  15. #15
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    Sorry - I gave up. It split it but nothing was linked so I had to go back to the original table.

  16. #16
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    You're best bet would be to tackle it programmatically then, if normalizing is something you deem necessary. Did you check out the first article I linked to?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •