A
AJOLSON
I am having a heck of a time getting fileDiolog box to open so a user can
select a file to import into an access tbl. I am using the following code
but get a compile error stating that ahtAddfilterItem "Sub or Function Not
defined"
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)", "*.XLS")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)
'strInputFileName contains the full path to whatever file was selected.
Using C:\Test" as the path am I way off base for what I want to do?
In a prefect world the user would select a file from that folder( excel
file) and it would load into a table. What code would I use to achive this?
thanks
Andy
select a file to import into an access tbl. I am using the following code
but get a compile error stating that ahtAddfilterItem "Sub or Function Not
defined"
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)", "*.XLS")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)
'strInputFileName contains the full path to whatever file was selected.
Using C:\Test" as the path am I way off base for what I want to do?
In a prefect world the user would select a file from that folder( excel
file) and it would load into a table. What code would I use to achive this?
thanks
Andy