PC Review


Reply
Thread Tools Rate Thread

Access Object IDs

 
 
=?Utf-8?B?bWF0YXJjYWxsYXJzZQ==?=
Guest
Posts: n/a
 
      1st Sep 2006
Does anyone know if/how/when object IDs (from MSysObjects) change in MS
Access? In a table in my database, I reference Form and Report objects using
their object IDs, but I have noticed that the IDs seem to randomly change.
The database is not replicated and the forms have not been dropped and
recreated. I have not been able to reproduce this behavior by:

- Renaming the object;
- Modifying the object;
- Modifying multiple objects;
- Compacting and Repairing the database;
- Copying the DB to a new name.

Referencing the object by ID as opposed to name is preferable for all the
normal reasons. Any ideas?
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      2nd Sep 2006
It will be interesting to see if anyone else has observed this.
Can't say I have, but neither have I tried to rely on these.

They could change if you create a new database, and imported everything. Is
this a possible explanation? This is the main reason why I never rely on the
object IDs: creating a new database and importing everything is a fairly
common rescue technique.

If that is not the case, do you have Name AutoCorrect enabled? Perhaps what
you are observing is this mis-feature confusing the names, rather than
genuine changes of name (though I don't know how MSysObject interacts with
Name AutoCorrupt.) Or, you might be onto one of the trails of how Name
AutoCorrupt actually destroys a database.

--
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.

"matarcallarse" <(E-Mail Removed)> wrote in message
news:BC9F3A3D-CE67-4F75-B6E3-(E-Mail Removed)...
> Does anyone know if/how/when object IDs (from MSysObjects) change in MS
> Access? In a table in my database, I reference Form and Report objects
> using
> their object IDs, but I have noticed that the IDs seem to randomly change.
> The database is not replicated and the forms have not been dropped and
> recreated. I have not been able to reproduce this behavior by:
>
> - Renaming the object;
> - Modifying the object;
> - Modifying multiple objects;
> - Compacting and Repairing the database;
> - Copying the DB to a new name.
>
> Referencing the object by ID as opposed to name is preferable for all the
> normal reasons. Any ideas?



 
Reply With Quote
 
=?Utf-8?B?bWF0YXJjYWxsYXJzZQ==?=
Guest
Posts: n/a
 
      2nd Sep 2006
Thanks for the response Allen. It's a brand new database, so it isn't an
issue of recovery or reimporting objects. The first time I noticed that a
name had changed, I figured that perhaps I had just made a mistake when
selecting the ID. When it happened the second time, I compared the IDs with
those from a backup (a tape backup, as opposed to an Access backup) and they
were different. I'll keep on watching, but am hoping to get a response
(Microsoft, you there?) that can restore my confidence in using this field.

"Allen Browne" wrote:

> It will be interesting to see if anyone else has observed this.
> Can't say I have, but neither have I tried to rely on these.
>
> They could change if you create a new database, and imported everything. Is
> this a possible explanation? This is the main reason why I never rely on the
> object IDs: creating a new database and importing everything is a fairly
> common rescue technique.
>
> If that is not the case, do you have Name AutoCorrect enabled? Perhaps what
> you are observing is this mis-feature confusing the names, rather than
> genuine changes of name (though I don't know how MSysObject interacts with
> Name AutoCorrupt.) Or, you might be onto one of the trails of how Name
> AutoCorrupt actually destroys a database.
>
> --
> 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.
>
> "matarcallarse" <(E-Mail Removed)> wrote in message
> news:BC9F3A3D-CE67-4F75-B6E3-(E-Mail Removed)...
> > Does anyone know if/how/when object IDs (from MSysObjects) change in MS
> > Access? In a table in my database, I reference Form and Report objects
> > using
> > their object IDs, but I have noticed that the IDs seem to randomly change.
> > The database is not replicated and the forms have not been dropped and
> > recreated. I have not been able to reproduce this behavior by:
> >
> > - Renaming the object;
> > - Modifying the object;
> > - Modifying multiple objects;
> > - Compacting and Repairing the database;
> > - Copying the DB to a new name.
> >
> > Referencing the object by ID as opposed to name is preferable for all the
> > normal reasons. Any ideas?

>
>
>

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      3rd Sep 2006
"matarcallarse" <(E-Mail Removed)> wrote in
message news:AB48E3DF-36F0-4E52-B80F-(E-Mail Removed)
> Thanks for the response Allen. It's a brand new database, so it isn't
> an issue of recovery or reimporting objects. The first time I noticed
> that a name had changed, I figured that perhaps I had just made a
> mistake when selecting the ID. When it happened the second time, I
> compared the IDs with those from a backup (a tape backup, as opposed
> to an Access backup) and they were different. I'll keep on watching,
> but am hoping to get a response (Microsoft, you there?) that can
> restore my confidence in using this field.


Unless you've created a support incident with Microsoft, I don't think
you're going to get a response from them. Microsoft personnel don't
regularly monitor these newsgroups, although if you have a certain kind
of relationship with them, I think they do guarantee you a response
within 72 hours (or something like that). However, they would probably
consider Allen's response to fulfill that obligation.

I believe that, if they were to respond, they would tell you you're not
supposed to write any code based on the structure of the MSysObjects
table, since that is intentionally hidden and not exposed as a public
interface. That's not much help for you, and I'm just guessing at their
response, but I wouldn't care to rely on the details of that table never
changing.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Name does not follow Microsoft Access object-naming rules clk Microsoft Access VBA Modules 3 20th Aug 2010 03:17 PM
object name doesn't follow microsoft access object naming rules Chuck W Microsoft Access 3 11th Dec 2009 03:00 PM
To store object and access by key(string), what collection object is the best performance one? Thanks. david Microsoft C# .NET 1 12th Dec 2003 03:53 AM
Access 2000 - Insert OLE object programatically into a forms OLE object field jon Microsoft Access Macros 0 15th Sep 2003 08:13 AM
Access 2000 - Insert OLE object programatically into a forms OLE object field jon Microsoft Access VBA Modules 0 15th Sep 2003 07:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 PM.