Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / February 2007

Tip: Looking for answers? Try searching our database.

Copy of an Excel link

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ivan - 26 Feb 2007 09:24 GMT
Hi,

there is an excel file with a lot of named sheets on a server on our local
net. In my access dbm I linked the first

Since I have to create links to all the sheets and since creating a lot of
links is not a pleasant job I tried first to copy link (i.e. linked table)
and then renamed the second (linked) table with the name of second sheet. Of
course, only to rename is not enouhg. Since the renamed table still remained
to point to the first sheet, I tried to change the pointer with Linked Table
Manager (LTM) but with no success. Is LTM so clumsy or am I of that sort?

Beside that I looked into the system table MSySObject and I found out that
for second table only ForeignName should be changed (Connect, Database,
Name, ... are OK).

Is there any way, direct or throuhg code, to update the field ForeignName in
the system table MSySObject?

Thanks in advance
John Nurick - 27 Feb 2007 20:29 GMT
Hi Ivan,

Rather than hack the system tables, I'd replace the linked tables with
queries using this syntax:

 SELECT * FROM
     [Excel 8.0;HDR=Yes;database=C:\TEMP\File.xls;].[SheetName$]
 ;

Use HDR=No if the first row doesn't contain column headers. If you
create one query like that, you can then make multiple copies with
different names and open them in SQL view to change the worksheet name.
Or you can write VBA code to do it automatically.

>Hi,
>
[quoted text clipped - 16 lines]
>
>Thanks in advance

--
John Nurick [Microsoft Access MVP]

Please respond in the newsgroup and not by email.
Ivan - 28 Feb 2007 12:00 GMT
Thank you, John, to remind me of  this way

Ivan

> Hi Ivan,
>
[quoted text clipped - 39 lines]
>
> Please respond in the newsgroup and not by email.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.