Sub or Function not found quesiton

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following code at the start the fiunction I am trying to work on.
If I run the entire linking module from within an open Access window there
are no errors. When I try compile, before creating an exe file, I get a
compile error at the ahtAddFilterItem code. I am totally lost at this point.
Is there a reference required for this? I can't find documention on this
function anywhere.

Function fGetMDBName(strIn As String) As String
'Calls GetOpenFileName dialog
Dim strFilter As String

strFilter = ahtAddFilterItem(strFilter, _
"Access Database(*.mdb;*.mda;*.mde;*.mdw) ", _
"*.mdb; *.mda; *.mde; *.mdw")
strFilter = ahtAddFilterItem(strFilter, _
"All Files (*.*)", _
"*.*")

Thank you.
 
strFilter = ahtAddFilterItem(strFilter, _
"Access Database(*.mdb;*.mda;*.mde;*.mdw) ", _
"*.mdb; *.mda; *.mde; *.mdw")


If the line above is causing a problem, then I would need to know what the
ahtAddFilterItem function says. Also, in this very first line, you've
included strFilter in it. strFilter is currently equal to "". Would passing
an empty string cause this function a problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Tweek code to give just the path 2
Tweeking API Code 2
ahtAddFilterItem 1
File Box 6
Importing excel file using VBA 6
Refreshing Links 3
Error 3073 with TransferText 7
Error 3061 - too few parameters 2

Back
Top