I have no clue how you would do that using SQL, but it's fairly straight-forward to do using DAO. Here's a quick example (untested):
Code:
'tbl is a TableDef object set to the table you need to modify.
dim fld as DAO.Field
Set fld = tbl.CreateField("myfield", dbBoolean)
fld.DefaultValue = True
tbl.Fields.Append fld
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.