M
Manuel
I have a checkbox field for which I want to change the data type to a Number
(Integer or Long Integer).
I searched the discussion board and found the following suggested code:
Dim strSql As String
strSql = "ALTER TABLE MyTable ALTER MyField LONG;"
DBEngine(0)(0).Execute strSql, dbFailOnError
I ran the code and while it does successfully change the data type to LONG
INTEGER, the Display Control property remains set at 106 (Check Box) and
therefore the appearance of the field in datasheet view does not change.
Could someone let me know how I would go about changing the Data Control
property (and other field properties - might as well ask since I'm posing the
question) for an existing field?
Thanks,
Manuel
(Integer or Long Integer).
I searched the discussion board and found the following suggested code:
Dim strSql As String
strSql = "ALTER TABLE MyTable ALTER MyField LONG;"
DBEngine(0)(0).Execute strSql, dbFailOnError
I ran the code and while it does successfully change the data type to LONG
INTEGER, the Display Control property remains set at 106 (Check Box) and
therefore the appearance of the field in datasheet view does not change.
Could someone let me know how I would go about changing the Data Control
property (and other field properties - might as well ask since I'm posing the
question) for an existing field?
Thanks,
Manuel