Hi
Is it possible to change the format of a field via vba?
I'm adding a field to a remote backend db using the following;
<snip>
Function AddNewField()
Dim db As DAO.Database
Set db = OpenDatabase("D:\nbm\smdata\smdata.mdb"
db.Execute "ALTER TABLE jobs ADD COLUMN RecallCheck YESNO;"
db.Execute "UPDATE jobs SET RecallCheck = 'No' ;"
db.Close
Set db = Nothing
End Function
</snip>
This all works accept that the field has no default format and so uses -1/0 as values. I would to change the format so that it shows a checkbox instead.
Haven't been able to find anything on doing so.
Howard
Is it possible to change the format of a field via vba?
I'm adding a field to a remote backend db using the following;
<snip>
Function AddNewField()
Dim db As DAO.Database
Set db = OpenDatabase("D:\nbm\smdata\smdata.mdb"
db.Execute "ALTER TABLE jobs ADD COLUMN RecallCheck YESNO;"
db.Execute "UPDATE jobs SET RecallCheck = 'No' ;"
db.Close
Set db = Nothing
End Function
</snip>
This all works accept that the field has no default format and so uses -1/0 as values. I would to change the format so that it shows a checkbox instead.
Haven't been able to find anything on doing so.
Howard