Mark said:
Thanks for the different "look".
It's a matter of time - would love to learn the SQL
approach, but there is a time element involved. I'll
look just in case it is easy.
Most things are easy - when you know how ;-)
Here's a couple of lines form a procedure I used to
reconfigure a delivered data db:
'Get rid of existing PK
DataDB.Execute "ALTER TABLE Quotes DROP CONSTRAINT PK"
' Add new ID field and copy the values from the old field
DataDB.Execute "ALTER TABLE Quotes ADD COLUMN ID LONG"
DataDB.Execute "UPDATE Quotes SET ID=CLng(OldID)"
' Make the new field the primry key
DataDB.Execute "ALTER TABLE Quotes ADD CONSTRAINT PK PRIMARY
KEY (ID)"
' Delete the old field
DataDB.Execute "ALTER TABLE Quotes DROP COLUMN OldID"