Open the table in design view.
Open the Indexes box (View menu).
What is the Name of the index?
It may be different from the name of the field.
For example, the index might be named "PrimaryKey".
Please note that this code works only with local tables, not attached
tables. When you OpenRecordset() on a local table, it defaults to
dbOpenTable, whereas an attached table uses dbOpenDynaset. Since most
databases end up being split, it might be better to just open the recordset
with the record you desire:
strSql = "SELECT Price FROM Table1 WHERE ItemId = " & ItemId & ";"
Set myset = mydb.OpenRecordset(strSql)
Of course, for that simple example you could just use DLookup(), but that's
the idea.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
>I would like to use the Seek function to find the details in a table and
>then
[quoted text clipped - 36 lines]
> The problem comes up at setting the index. Any help would be appreciated.
> Thankyou.