Hi
I use the following to add a column. This does not work on a linked table.
Error: Cannot execute data definition statements on linked data sources.
Any ideas ?
Thanks
Alfred
Dim cmd As New ADODB.Command
cmd.ActiveConne ction = CurrentProject. Connection
cmd.CommandText = "ALTER TABLE QuoteDetails ADD COLUMN IdNo
AUTOINCREMENT(1 ,1);"
On Error Resume Next 'gives error if column already exists
cmd.Execute
I use the following to add a column. This does not work on a linked table.
Error: Cannot execute data definition statements on linked data sources.
Any ideas ?
Thanks
Alfred
Dim cmd As New ADODB.Command
cmd.ActiveConne ction = CurrentProject. Connection
cmd.CommandText = "ALTER TABLE QuoteDetails ADD COLUMN IdNo
AUTOINCREMENT(1 ,1);"
On Error Resume Next 'gives error if column already exists
cmd.Execute
Comment