"I tried it and it didn't work"
-please provide details as to in what way it did not work, such as any error messages or the results.
Just a minor note about the field "Deleted" - I don't think it's a reserve word but just in case it is you may want to put it in quotes or show it as a descendant of a table
Example
SELECT MyTable.Deleted FROM MyTable
Main Topics
Browse All Topics





by: JohnjcesPosted on 2008-06-12 at 22:01:28ID: 21776092
One problem as I see it is you should be using an ADOCommand. Works with Access fine.
Here is an example...
ADOCommand1.CommandText := 'Alter Table CDLib ADD CDKey Text(50)';
ADOCommand1.Execute;
ADOCommand1.CommandText := 'Alter Table CDLib ADD Comments Memo';
ADOCommand1.Execute;
You can then add your default text as you did above.
I also would use quoted string. I feel it makes quoted strings in strings easier and more fool proff.:
SQL.Add('ADD COLUMN Deleted CHAR(1) DEFAULT ' + QuotedStr('N'));
Hope this helped.
John