Alter Table Remove Index

ADiecidue

Member
Joined
Jun 3, 2008
Messages
13
Programming Experience
10+
I'm using an Access 2003 database with VB2008. I recently posted regarding using ALTER TABLE to Rename columns. Since that did not work, I decided to Create a new column, copy the data from the old column then Delete the old column. The problem is that columns that are Indexed will not delete. Is there a way to set the Indexed property of those columns to "NO" then delete them?
--Tony--
 
I used the code below, even though it doesn't seem right and it didn't work.

db.Execute("ALTER TABLE Insurance2 DROP INDEX [Patient's Zip Code] ON Insurance2;")

I also tried:

db.Execute("ALTER TABLE Insurance2 DROP INDEX [Patient's Zip Code];")

With no success either.
 
Back
Top