E
Eric
Hello. I am wondering if it's possible to change a fields
data type via VBA? The reason I am asking is I have a make
table query (tmpGloss10Week2 is the table name) that the
field called PCTAcceptable is a text field instead of a
Number data type field. I have tried the following code
with no success:
Sub ChangeDataType()
Dim dbs As DAO.Database
Dim tbl As TableDef
Dim fld As Field
Set dbs = CurrentDb
Set tbl = dbs.TableDefs("tmpGloss10Week2")
Set fld = tbl.Fields("PCTAcceptable")
fld.Attributes = dbFixedField
End Sub
What am I missing?
data type via VBA? The reason I am asking is I have a make
table query (tmpGloss10Week2 is the table name) that the
field called PCTAcceptable is a text field instead of a
Number data type field. I have tried the following code
with no success:
Sub ChangeDataType()
Dim dbs As DAO.Database
Dim tbl As TableDef
Dim fld As Field
Set dbs = CurrentDb
Set tbl = dbs.TableDefs("tmpGloss10Week2")
Set fld = tbl.Fields("PCTAcceptable")
fld.Attributes = dbFixedField
End Sub
What am I missing?