I can use a bit of help with the following:
I am trying to pull the linked filename from:
Which results in the correct string in for format of:
"Text;DSN=Kck5 Link Specification;FMT=Delimited;HDR=NO;IMEX=2;CharacterSet=437;DATABASE=C:\Documents and Settings~~~~"
The only part of this text that I need is after the = from DSN to the first space (which represents the linked CSV filename).
If someone would help me write the parse statement I'd be grateful.
I am trying to pull the linked filename from:
Code:
Dim dbs As Database, stPath As String
Set dbs = CurrentDb()
On Error Resume Next
stPath = dbs.TableDefs(strTable).Connect
If stPath = "" Then
fGetLinkPath = vbNullString
Else
fGetLinkPath = stPath
End If
Set dbs = Nothing
End Function
Which results in the correct string in for format of:
"Text;DSN=Kck5 Link Specification;FMT=Delimited;HDR=NO;IMEX=2;CharacterSet=437;DATABASE=C:\Documents and Settings~~~~"
The only part of this text that I need is after the = from DSN to the first space (which represents the linked CSV filename).
If someone would help me write the parse statement I'd be grateful.