NauticalGent
Ignore List Poster Boy
- Local time
- Today, 03:53
- Joined
- Apr 27, 2015
- Messages
- 6,746
Good morning folks,
I recently was given a db to look into. Aside from a few other issues, there are about 50 tables and ALL of the short text fields are sized at 255. I wrote a quick sub that looped through the TableDefs and determined the max length of the data in each field.
I then attempted to alter each field's length with VBA but ran into some issues - I have to figure out a way to "release" the table after I have evaluated it before I can alter it.
But before I go down that rabbit-hole, as anyone else done anything like this? If so I would be very interested in hearing what you have to say on this.
Thanks in advance!
I recently was given a db to look into. Aside from a few other issues, there are about 50 tables and ALL of the short text fields are sized at 255. I wrote a quick sub that looped through the TableDefs and determined the max length of the data in each field.
I then attempted to alter each field's length with VBA but ran into some issues - I have to figure out a way to "release" the table after I have evaluated it before I can alter it.
But before I go down that rabbit-hole, as anyone else done anything like this? If so I would be very interested in hearing what you have to say on this.
Thanks in advance!