Microsoft
Software
Hardware
Network
Question : Access 2007 - UNC paths in VBA to files on a server (2003)
I have a form in Access 2007. On Current event, I want to check a directory on a server (running Win 2003) to see if a specific file exists. If it does, I want to set the Visible property of a hyperlink to True, else False.
If Dir(FileName) = "" Then
Me!viewpdflink.Visible = False
Else: Me!viewpdflink.Visible = True
End If
Quite sure the problem is in my path as I can make it work fine if I use a local directory.
FileName = "\\NightWatch\Scans\Contra
cts\" & Me!Custno & Me!ContractID & ".pdf"
Nightwatch - server name
Scans - shared folder
me!Custno & me!contractid - textboxes on the form that match the filename when combined.
The error I keep getting is:
Run-time error '52':
Bad file name or number
Can someone help me!
Max
Answer : Access 2007 - UNC paths in VBA to files on a server (2003)
Import the reg file into the DC from this link this will configure all settings for you automatically.
http://www.experts-exchang
e.com/OS/
M
icrosoft_O
perating_S
ystems/Ser
ver/2003_S
erver/
Q_23
630502.htm
l
Here is a link if you want to do it yourself.
\
http://technet.microsoft.
com/en-us/
library/
cc
786897(WS.
10).aspx
Random Solutions
two jquery files affect each other?
Word doesn't open file that's setup with VB- error: could not load some objects because they are not available on this machine
Shape color
Print constant string as Select Output
What is the netstat -an port BOUND state?
I removed the cmos battery from a dell power edge 2650
How can I generate attention required 'textbox' or 'datasheet' on access forms?
Saving 3ds Max 2009 files taking ages !!
How to preform Multi Thread Join Async
Syntax Error