On Tue, 24 Feb 2004 00:14:02 -0500, "DFS" <no****@nospam.com> wrote:
"dave71" <da***********@hotmail.com> wrote in message
news:ca**************************@posting.google. com... Hi
Could someone please advise me how to remove the schema name from
linked tables within Access. For example when I connect to a Oracle
database via Microsoft ODCB for Oracle the list of tables shown are of
the nature username.tablename I would like this only to display the
table name I have this arrangement on another PC here but I am not
sure how it was configured.
Thanks
Dave,
Just highlight the link, hit F2 and edit the name. But before doing this,
think about the ramifications. It's yet another issue that has to be
documented. If you relink the tables, you'll have to rename them again. If
someone inherits the system from you, they'll have to know this caveat. The
schema names might help when writing pass-through queries.
I used to rename links, but no longer do so. I recommend against it.
It depends how you re-link, doesn't it? My relinking code updates the connect
strings and refreshes the existing links, so the names of the links,
themselves don't change. If anyone does manually delete and recreate the
links, it will be obvious that the link names don't look the same as they did
before and will need to be fixed. Finally, if you leave the schema names -in-
the link names, you are now making the front-end only work with one schema
name which makes the front-end much less flexible.
By the way, if you -really-have a lot of links to update, you can loop through
the tabledefs collection, and rewrtie the Name property in code. I do that in
one of my apps since I have to delete and recreate the links to switch between
an MDB and PostgreSQL server back-end. I don't know why, but Access won't let
you change one type of link to another type.