Link to home
Start Free TrialLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

Create index in access table

Hello guys

How could I create an index in an  access table?

Something like this:

create index ....

thanks

Avatar of hongjun
hongjun
Flag of Singapore image

try this

CREATE UNIQUE INDEX IndexName ON TableName ([FieldName])
Avatar of hidrau

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of hongjun
hongjun
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hidrau

ASKER

ah i see
Avatar of hidrau

ASKER

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?

SOLUTION
Avatar of Tomas Helgi Johannsson
Tomas Helgi Johannsson
Flag of Iceland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hidrau

ASKER

thanks very much