J
John
I have an existing table in a .mdb database and I want to add a text
column that is not required. I can add the text column but when I tried
to set it to allow nulls I get the error "Multiple-step OLE DB
operations generated errors.", error messasge. My code is shown below.
Dim catCurr As New ADOX.Catalog
catCurr.ActiveConnection = CurrentProject.Connection
With catCurr.Tables("Test1")
.Columns.Append "TransComments", adWChar, 80
.Columns("TransComments").Attributes = adColNullable
End With
Set catCurr = Nothing
End Sub
When Access reaches the line ".Columns("TransComments").Attributes =
adColNullable" it generates the error. What am I doing wrong? I am
running Access 2003. Thanks for your help.
John
column that is not required. I can add the text column but when I tried
to set it to allow nulls I get the error "Multiple-step OLE DB
operations generated errors.", error messasge. My code is shown below.
Dim catCurr As New ADOX.Catalog
catCurr.ActiveConnection = CurrentProject.Connection
With catCurr.Tables("Test1")
.Columns.Append "TransComments", adWChar, 80
.Columns("TransComments").Attributes = adColNullable
End With
Set catCurr = Nothing
End Sub
When Access reaches the line ".Columns("TransComments").Attributes =
adColNullable" it generates the error. What am I doing wrong? I am
running Access 2003. Thanks for your help.
John