I have a make table query that makes a fieldsize that is too large. I only need a property of 10 and it is making the size 255. It is causing problems with reports and indexes. How can I change the fieldsize property within a query or macro or code?
This example will change the field MyTextField in Table1 to 10:
Dim strSQL As String
DoCmd.SetWarnings False
strSQL = "ALTER TABLE Table1 ALTER COLUMN MyTextField TEXT(10);"
DoCmd.RunSQL (strSQL)
DoCmd.SetWarnings True
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.