How to get table primary key

D

Dexter

hello!
I have to chech if some table column is table primary key.
Here are code to get to the table column:
For Each tabula As dao.TableDef In ACS.TableDefs
If tabula.Name.ToUpper.Trim = sName.ToUpper.Trim Then
For Each lauks As dao.Field In tabula.Fields
If lauks.Name.ToUpper.Trim = sColName.ToUpper.Trim Then
'???
End If
Next
End If
Next

after that i need to know is it primary key or not and is this column is
indexed or not!
I hope you will help me soon!

Dexter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top