PC Review


Reply
Thread Tools Rate Thread

Format the file location based on server location no the mapped dr

 
 
BZeyger
Guest
Posts: n/a
 
      18th Feb 2009
I have code in place that has a user click a button and a select file
location would be entered in a filed named txtLocation based on the selected
record.

The final line of code I have is:
Me.txtLocation = strInputFileName

This works fine but it enters: Z:\FileLlocation\ABC\FileName.PDF

Instead if it entering Z:\FileLocation\ABC in the field, I would like it to
begin with \\ServerName\Filelocation\ABC

Basically, instead of it displaying the location based on the mapping on my
screen, I would like it formatted based on the server location.

 
Reply With Quote
 
 
 
 
Gina Whipp
Guest
Posts: n/a
 
      20th Feb 2009
BZeyger,

Suggestion, I store the UNC path in a table and then use it to 'put
together' my file path. SInce the Server Name rarely, if ever, changes no
need to worry about maintenance.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"BZeyger" <(E-Mail Removed)> wrote in message
news:60460D9E-09D2-4747-A59F-(E-Mail Removed)...
>I have code in place that has a user click a button and a select file
> location would be entered in a filed named txtLocation based on the
> selected
> record.
>
> The final line of code I have is:
> Me.txtLocation = strInputFileName
>
> This works fine but it enters: Z:\FileLlocation\ABC\FileName.PDF
>
> Instead if it entering Z:\FileLocation\ABC in the field, I would like it
> to
> begin with \\ServerName\Filelocation\ABC
>
> Basically, instead of it displaying the location based on the mapping on
> my
> screen, I would like it formatted based on the server location.
>



 
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
UNC vs Mapped Drive - Mapped drive works but UNC does not =?Utf-8?B?U2F0eWE=?= Microsoft Dot NET 0 24th Jul 2006 07:34 PM
Orphan Mapped/Local drives, how to get rid of "mapped" drives... =?Utf-8?B?Z2xvYmFsX2Rldg==?= Windows XP Performance 0 29th Apr 2006 02:43 AM
memory mapped IO: device registers mapped to virtual memory or physical memory? Olumide Computer Hardware 13 9th Feb 2006 11:44 PM
Mapped drives are not mapped Danny Kile Windows XP Networking 0 19th Jul 2005 12:34 AM
Mapped drive versus mapped folder for XP customizations Devin Richards Windows XP Customization 0 23rd Jan 2004 12:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:35 PM.