Hi everyone. I’ve encountered a problem with my database and am not sure what is wrong. I have created a new table with about 185 fields in it. When I first created the table, everything seemed fine. I started building a Form based on it, but realized that I had not set some of the Number fields to the correct type. They were all set as Long Integer by default, and I need some of them to be Single, and a few to be Integer. I went through all of them and changed them to what I wanted them to be, and when I tried to close the Table, I was given an error: “Too many fields defined.” I hit OK, and another window popped up that said: “Errors were encountered during the save operation. Data types were not changed.” There was a Show Help button, so I clicked it, and it gave me this very long response:
This error can be caused by one of the following:
- The maximum number of columns allowed in a table or the maximum number of locks for a single file is exceeded.
- The indexed property of a field is changed from Yes (Duplicates OK) to Yes (No Duplicates) when duplicate data exists in the table.
- An expression is not specified in the Expression property of a calculated field.
If the maximum number of locks per file was exceeded, you can increase the number by editing a registry entry. However, this is not a recommended option.
If you use Registry Editor incorrectly, you could cause serious problems that require you to reinstall the operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
Make a backup of the registry. Find the MaxLocksPerFile registry value by using the Windows Registry Editor, and then increase the value. The MaxLocksPerFile value is saved as part of the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ Access Connectivity Engine\Engines\ACE
If the Indexed property of a field and duplicate data is located in the table, reset the Indexed property to the previous setting, or remove duplicate records from the table.
I don’t think it’s a maximum number of columns issue, because I believe that number is 255, so I’m under that. There’s no duplicate data in the table, because the table currently only has one record. There are no calculated fields in my table, so that can’t be it. So the only thing it seems it could be is the maximum number of locks in a single file is exceeded. I have no idea what that even means. Can anyone enlighten me? As for changing the Registry, is that really the only option I have? I don’t mess with my Registry much at all, so I’d really rather not do that unless it’s absolutely necessary. I’m hoping there may be another work-around. Anyone experienced this before?