Question : Set DAO MDB Text Field Size


I'm creating new Field on the lly, as required, but need to set a Text Field size from the default 255.

This doesn't work:
    fld.Properties("Field Size").Value = 20

Does anyone know how to make it happen?

Using DAO 3.6 / VB6 Classic.


Answer : Set DAO MDB Text Field Size

I've always used a query to build the database and used the syntax...
"Field_Name TEXT(20)"

As an example, I found this random page with a google search...
...that shows how to create a table with a query.
Random Solutions  
programming4us programming4us