Create index in access table

Hello guys

How could I create an index in an  access table?

Something like this:

create index ....

thanks

LVL 1
hidrauAsked:
Who is Participating?
 
hongjunCommented:
Do this

CREATE INDEX IndexName on TableName ([FieldName])


In this case, we are not specifying UNIQUE.
0
 
hongjunCommented:
try this

CREATE UNIQUE INDEX IndexName ON TableName ([FieldName])
0
 
hidrauAuthor Commented:
this fieldname will have duplicated row. In access there is an option to allow or not duplicated rows, Mustn't I do this in the sql line?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
hidrauAuthor Commented:
ah i see
0
 
hidrauAuthor Commented:
I forgot to tell you that I need to check whether there is already an index created or not.

Do you have any Ideia how to do that?

0
 
Tomas Helgi JohannssonCommented:
DROP INDEX IndexName;
COMMIT;
CREATE INDEX IndexName on TableName([FieldName];
COMMIT;

Regards,
  TOmas Helgi
0
 
hidrauAuthor Commented:
thanks very much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.