C
Calvin
I've been able to create a Table within a module, and access some of the
Properties... but can't find anywhere any info on how to change the Format
Property specifically of a Boolean Field to display Yes/No rather than 0/-1
such as code would look like...
Dim dbs As Database, tdf As TableDef
Set dbs = CurrentDb
Set tdf = dbs.CreateTableDef("Aircraft")
tdf.Fields.Append tdf.CreateField("Current_Review_Date", dbText, 50)
tdf.Fields("Current_Review_Date").AllowZeroLength = True
'Rest of Fields....
dbs.TableDefs.Append tdf
In an ideal world there would be...
tdf.Fields("Some Boolean Field").Format = "Yes/No"
Properties... but can't find anywhere any info on how to change the Format
Property specifically of a Boolean Field to display Yes/No rather than 0/-1
such as code would look like...
Dim dbs As Database, tdf As TableDef
Set dbs = CurrentDb
Set tdf = dbs.CreateTableDef("Aircraft")
tdf.Fields.Append tdf.CreateField("Current_Review_Date", dbText, 50)
tdf.Fields("Current_Review_Date").AllowZeroLength = True
'Rest of Fields....
dbs.TableDefs.Append tdf
In an ideal world there would be...
tdf.Fields("Some Boolean Field").Format = "Yes/No"