ADOX 2.8 doesn't seem to support setting nullable fields in access



In VB6:
Referencing ADOX 2.8

Dim cat As New ADOX.Catalog, col As ADOX.Column, tbl As New ADOX.Table
cat.Create ("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Temp\output.mdb")
tbl.Name = "Foo"
Set col = New ADOX.Column
col.Name = "something"
col.Type = ADOX.DataTypeEnum.adVarWChar
col.DefinedSize = 50
col.Attributes = adColNullable
tbl.Columns.Append col
cat.Tables.Append tbl

This doesn't work for me unless I remove the adColNullable attribute. ADOX
doesn't seem to support setting the column to allow null values. Any ideas
how to do this?


.



Relevant Pages