Question : Adding a new field - with index - through VBA


I have a small query that allows me to add new fields to my tables:

ALTER TABLE [tblTableName] ADD COLUMN [Index Test 2] Text(50)

But I also need to set an index on this field - can anyone let me know the correct syntax addition.  It's not for Primary key or anything such as that.

Thanks as always.

Answer : Adding a new field - with index - through VBA

CREATE INDEX tblTableName_IDX1 ON [tblTableName] ([Index Test 2]);
Random Solutions  
 
programming4us programming4us