![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using the following in A2k on a Win2k (SP4) Terminal Server using a SQL 7 backend. Private Sub EOLDirectory_Click() Dim SrDir, SRval SRval = Left(Me!SR, Len(Me!SR) - 4) SrDir = Shell("explorer \\MyServ\shares\eol\" & SRval & "0000-" & SRval & "9999\", 1) End Sub Some folks use a copy of the db from terminal services, others use it from their local desktop, but all working files and directories are on a shared drive on the network. The directory opens just fine, but the db reports 'Unable to open "\\MyServ\shares\eol\". Cannot open the specified file.' I have tried to format the shell() argument several different ways and get the same results, including: SiteDir = Shell("c:\windows\explorer.exe" & Chr(32) & Chr(34) & "\\oflnmoejfs1\shares\EOL\" & SRval & "0000-" & SRval & "9999", 1) Can someone help me understand why I am getting the error? This seems straightforward, and other postings on opening folders do not seem to discuss this error. TIA |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I should have explained better. The folder path I am trying to open is a function of the SR value minus the last 4 digits. My understanding is to use explorer to open a folder. Yet I am getting a file error when opening a folder. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
There is no file. The database contains a form which has a button that is calling explorer to open a specific directory. Nothing more, nothing less. The folder that needs to open is variable by the SR value. Other postings show the shell() function calling explorer as being the means by which to open a folder. Opening a file is beyond the scope of this request for assistance. Since the function calls a directory, and that directory opens as it should, why do I get a file error, when no file is being requested? |
#7
| |||
| |||
|
|
I am using the following in A2k on a Win2k (SP4) Terminal Server using a SQL 7 backend. Private Sub EOLDirectory_Click() Dim SrDir, SRval SRval = Left(Me!SR, Len(Me!SR) - 4) SrDir = Shell("explorer \\MyServ\shares\eol\" & SRval & "0000-" & SRval & "9999\", 1) End Sub Some folks use a copy of the db from terminal services, others use it from their local desktop, but all working files and directories are on a shared drive on the network. The directory opens just fine, but the db reports 'Unable to open "\\MyServ\shares\eol\". Cannot open the specified file.' I have tried to format the shell() argument several different ways and get the same results, including: SiteDir = Shell("c:\windows\explorer.exe" & Chr(32) & Chr(34) & "\\oflnmoejfs1\shares\EOL\" & SRval & "0000-" & SRval & "9999", 1) Can someone help me understand why I am getting the error? This seems straightforward, and other postings on opening folders do not seem to discuss this error. TIA |
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Thanks, trevor. same thing, opens the directory, but still get file error. is there a way to make it ignore the error? |
![]() |
| Thread Tools | |
| Display Modes | |
| |