I have some code which I found somwhere (I think it was mvps.org/access but not certain) that I want to tweak a little bit. I want to retrieve only the path and not a specific file. At present, it retrieves an entire file name with the full path. Can anyone instruct me how to accomplish this?
MrsBean
Code:
Private Sub LogFileName_DblClick(Cancel As Integer)
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "Log Files (*.txt)", "*.LOG")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)
Me.LogFileName = strInputFileName
Me.LogFileName.Requery
End Sub
MrsBean