What type of table is this? (linked vs. local, Jet vs. ODBC, etc.)
How are you determining that the PK is gone? (Look in Access GUI, iterating
tabledef's indexes by name, iterating tabledef's indexes by primary
property)
How are you resetting the PK? (GUI, code)
It's a linked Jet table from an Access front end, and it just happened again.
I can tell when it happens when a form which has been fine for months
suddenly starts being not updateable. That now leads me to look at the back
end, and the table definition no longer shows Primary for what should be the
primary key. I then put it back again with the GUI, and it's fine... for a
while.
None of my queries EVER do anything with indexes.
Yoicks!
> What type of table is this? (linked vs. local, Jet vs. ODBC, etc.)
>
[quoted text clipped - 21 lines]
> >> > backend)
> >> > ANY idea what could have happened??!!
Lynn Trapp - 30 Dec 2004 13:26 GMT
Kevin,
This sounds really bizarre. I've never heard of a Primary Key index
disappearing on its own. That leads me to suspect some kind of corruption
that may only get worse.

Signature
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
> It's a linked Jet table from an Access front end, and it just happened again.
> I can tell when it happens when a form which has been fine for months
[quoted text clipped - 32 lines]
> > >> > backend)
> > >> > ANY idea what could have happened??!!
Kevin Witty - 30 Dec 2004 14:33 GMT
Yeah, well sometimes bizarre 'r us. Shudda seen what Word did to me
yesterday with a table of contents!
I'm going to rebuild the table from scratch and see what happens. BTW, this
has happened on both the client's machine and my own.
> Kevin,
> This sounds really bizarre. I've never heard of a Primary Key index
[quoted text clipped - 47 lines]
> > > >> > backend)
> > > >> > ANY idea what could have happened??!!
Lynn Trapp - 30 Dec 2004 18:50 GMT
> Yeah, well sometimes bizarre 'r us. Shudda seen what Word did to me
> yesterday with a table of contents!
LOL... Word can do some really strange things.
> I'm going to rebuild the table from scratch and see what happens. BTW, this
> has happened on both the client's machine and my own.
If you are copying the database back and forth from yourself to the clients,
you may also be copying corruption back and forth -- assuming it is
corrupted.

Signature
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
Dirk Goldgar - 02 Jan 2005 03:30 GMT
> It's a linked Jet table from an Access front end, and it just
> happened again. I can tell when it happens when a form which has
[quoted text clipped - 4 lines]
>
> None of my queries EVER do anything with indexes.
I don't suppose anybody/anycode is running a make-table query on the
table in question in the back-end database?

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
Kevin Witty - 02 Jan 2005 04:25 GMT
No such luck. The primary key didn't disappear again on Friday, so I'm
waiting to see what happens Monday.
> > It's a linked Jet table from an Access front end, and it just
> > happened again. I can tell when it happens when a form which has
[quoted text clipped - 7 lines]
> I don't suppose anybody/anycode is running a make-table query on the
> table in question in the back-end database?