I'm trying to add a column to an existing table:
db.Execute "ALTER TABLE Passanten ADD COLUMN ToeslagBerekend YesNo"
db.TableDefs("Passanten").Fields("ToeslagBerekend").Properties("DefaultValue") = False
The result is confusing:
In the table definition is the datatype Yes/No
In data view there is the value 0 I can change it in -1
In the program where I use the field the value is null
Is my alter table wrong?
db.Execute "ALTER TABLE Passanten ADD COLUMN ToeslagBerekend YesNo"
db.TableDefs("Passanten").Fields("ToeslagBerekend").Properties("DefaultValue") = False
The result is confusing:
In the table definition is the datatype Yes/No
In data view there is the value 0 I can change it in -1
In the program where I use the field the value is null
Is my alter table wrong?