G
Guest
Hello.
I know some (or many) of you will disapprove of using ADOX to define tables,
columns, etc. but it's what I must do.
I have a table that already exists, and I want to add some columns to it.
On a particular date column, I need to set its "Nullable" attribute to False.
I know the syntax for doing it, and if I were creating the table for the
first time, this code works. But when the table already exists, and I run
this code, I receive the "Multiple-step OLE DB operation generated errors."
error. Anyway, here is the code snippet that generates the error:
Dim adox_Table as ADOX.Table
..
..
..
With adox_Table
.Append MyDateField, adDate
.Item(MyDateField).Properties("Nullable") = True
End With
Anyone have any insights as to why this won't work on an already-existing
table? I have also tried using an ADOX.Column object, setting its
nullability property, and it generates the same error.
Thanks very much!!
John
I know some (or many) of you will disapprove of using ADOX to define tables,
columns, etc. but it's what I must do.
I have a table that already exists, and I want to add some columns to it.
On a particular date column, I need to set its "Nullable" attribute to False.
I know the syntax for doing it, and if I were creating the table for the
first time, this code works. But when the table already exists, and I run
this code, I receive the "Multiple-step OLE DB operation generated errors."
error. Anyway, here is the code snippet that generates the error:
Dim adox_Table as ADOX.Table
..
..
..
With adox_Table
.Append MyDateField, adDate
.Item(MyDateField).Properties("Nullable") = True
End With
Anyone have any insights as to why this won't work on an already-existing
table? I have also tried using an ADOX.Column object, setting its
nullability property, and it generates the same error.
Thanks very much!!
John