Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
R.Douthwaite
 
Posts: n/a
Default Get external data using UNC path

Hello all,

Hoping someone can help me here.

I have an excel file that pulls in external data to two of the worksheets
from Access database queries located on a server.

I have no problem setting this up if I use mapped drive letters but...

My question is, is there any way to get external data using a UNC path
rather than a drive letter path?

The file can be opened from the access database front end but the
possibility exists that not every user will have the network folder mapped to
the same drive, hence the desire to use a UNC path.

Any help would be much appreciated

Thanks in advance

--
R.Douthwaite.
Information Coordinator
www.swift-research.co.uk
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Get external data using UNC path

Unless I have a very compelling reason not to, I prefer to use UNC paths to
data sources. If you've already created the Excel query, you might try this:

Edit the query
Click the [SQL] button
Edit the mapped drive path to be the UNC path.

Example:
Change this:
SELECT * FROM K:\MyDatabase.mdb

to something like this:
SELECT * FROM \\NetworkServer\DB_Folder\MyDatabase.mdb

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"R.Douthwaite" wrote:

Hello all,

Hoping someone can help me here.

I have an excel file that pulls in external data to two of the worksheets
from Access database queries located on a server.

I have no problem setting this up if I use mapped drive letters but...

My question is, is there any way to get external data using a UNC path
rather than a drive letter path?

The file can be opened from the access database front end but the
possibility exists that not every user will have the network folder mapped to
the same drive, hence the desire to use a UNC path.

Any help would be much appreciated

Thanks in advance

--
R.Douthwaite.
Information Coordinator
www.swift-research.co.uk

  #3   Report Post  
Posted to microsoft.public.excel.misc
R.Douthwaite
 
Posts: n/a
Default Get external data using UNC path


Thanks Ron, that pretty much does what I need.


-
R.Douthwaite.



"Ron Coderre" wrote:

Unless I have a very compelling reason not to, I prefer to use UNC paths to
data sources. If you've already created the Excel query, you might try this:

Edit the query
Click the [SQL] button
Edit the mapped drive path to be the UNC path.

Example:
Change this:
SELECT * FROM K:\MyDatabase.mdb

to something like this:
SELECT * FROM \\NetworkServer\DB_Folder\MyDatabase.mdb

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"R.Douthwaite" wrote:

Hello all,

Hoping someone can help me here.

I have an excel file that pulls in external data to two of the worksheets
from Access database queries located on a server.

I have no problem setting this up if I use mapped drive letters but...

My question is, is there any way to get external data using a UNC path
rather than a drive letter path?

The file can be opened from the access database front end but the
possibility exists that not every user will have the network folder mapped to
the same drive, hence the desire to use a UNC path.

Any help would be much appreciated

Thanks in advance

--
R.Douthwaite.
Information Coordinator
www.swift-research.co.uk

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Get external data using UNC path

I have a similar problem with an access database query. We are using a PC
server in a small office network which stores all the files. The path
required for the query in my excel file is different for the server than if I
use the file on the non-server PCs. It means I have to change the query path
every time I use the file on the server. Is the solution somehow in what you
are referring to "UNC paths"? Where can I get simple instructions on setting
up UNC paths?

Regards

"Ron Coderre" wrote:

Unless I have a very compelling reason not to, I prefer to use UNC paths to
data sources. If you've already created the Excel query, you might try this:

Edit the query
Click the [SQL] button
Edit the mapped drive path to be the UNC path.

Example:
Change this:
SELECT * FROM K:\MyDatabase.mdb

to something like this:
SELECT * FROM \\NetworkServer\DB_Folder\MyDatabase.mdb

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"R.Douthwaite" wrote:

Hello all,

Hoping someone can help me here.

I have an excel file that pulls in external data to two of the worksheets
from Access database queries located on a server.

I have no problem setting this up if I use mapped drive letters but...

My question is, is there any way to get external data using a UNC path
rather than a drive letter path?

The file can be opened from the access database front end but the
possibility exists that not every user will have the network folder mapped to
the same drive, hence the desire to use a UNC path.

Any help would be much appreciated

Thanks in advance

--
R.Douthwaite.
Information Coordinator
www.swift-research.co.uk

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Get external data using UNC path

If you have any IT staff in your organization, they can explain Universal
Naming Convention (UNC) usage as it pertains to your situation.

Also, see if this website helps:
http://www.google.com/search?hl=en&q...h+instructions

***********
Regards,
Ron

XL2003, WinXP


"pkeegs" wrote:

I have a similar problem with an access database query. We are using a PC
server in a small office network which stores all the files. The path
required for the query in my excel file is different for the server than if I
use the file on the non-server PCs. It means I have to change the query path
every time I use the file on the server. Is the solution somehow in what you
are referring to "UNC paths"? Where can I get simple instructions on setting
up UNC paths?

Regards

"Ron Coderre" wrote:

Unless I have a very compelling reason not to, I prefer to use UNC paths to
data sources. If you've already created the Excel query, you might try this:

Edit the query
Click the [SQL] button
Edit the mapped drive path to be the UNC path.

Example:
Change this:
SELECT * FROM K:\MyDatabase.mdb

to something like this:
SELECT * FROM \\NetworkServer\DB_Folder\MyDatabase.mdb

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"R.Douthwaite" wrote:

Hello all,

Hoping someone can help me here.

I have an excel file that pulls in external data to two of the worksheets
from Access database queries located on a server.

I have no problem setting this up if I use mapped drive letters but...

My question is, is there any way to get external data using a UNC path
rather than a drive letter path?

The file can be opened from the access database front end but the
possibility exists that not every user will have the network folder mapped to
the same drive, hence the desire to use a UNC path.

Any help would be much appreciated

Thanks in advance

--
R.Douthwaite.
Information Coordinator
www.swift-research.co.uk



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing External Data function xppuser Excel Worksheet Functions 1 December 19th 05 01:34 AM
Get External Data in Excel MattsConfused Excel Discussion (Misc queries) 0 December 17th 05 05:37 PM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
External data Macro Problem Excel 97 Craig Kelly Excel Discussion (Misc queries) 1 January 17th 05 03:17 PM


All times are GMT +1. The time now is 09:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"