Board index » delphi » "Not Uniquely Indexed" error

"Not Uniquely Indexed" error

I have two TQuery's, both accessing the same database table, but
having different filters.  I do some deletions with the first and then
with the 2nd TQuery, try to do a Refresh() to account for the
deleted records.

I am getting the error:
    Table does not support this operation because it is not uniquely indexed.

I'm using Access97 and I have a "Long Integer" field that is
indexed, without duplicates.  It is the only index in the table.

Why am I getting this error?

Thanks.

-bruceh-

 

Re:"Not Uniquely Indexed" error


Quote
>I am getting the error:
>    Table does not support this operation because it is not uniquely indexed.
>I'm using Access97 and I have a "Long Integer" field that is
>indexed, without duplicates.  It is the only index in the table.

Do you have the IndexFieldName set to this index?
--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Re:"Not Uniquely Indexed" error


Instead of calling Refresh close and reopen the query.

--
Bill
(TeamB cannot answer questions received via email)

Other Threads