I pasted the "relink access tables from code" example in my A97 app but when
I compiled without any of the GetOpenFileName code I got a "sub or function
not defined" error on ahtAddFilterItem of the fGetMDBName function.
I then pasted ALL of the GetOpenFileName code and got strange error messages
like "can't have anything after a function ends except comments" or
something like that (and yes I did paste it EXACTLY as in the example). I
then removed all of that GetOpenFileName code.
Would you please point out the most MINIMUM portion of the GetOpenFileName
code needed to pair with the "relink access tables from code" example.
A quick clarification would be Grand! ALL of you guys are tops!
Thanks for this and ALL of the other help you guys provide. I really
appreciate it.
Carroll.
You need everything that's in gray in the example: start after the code
start line, and take everything up to the code end line. The last line
you're pasting in should be an End Function.
HTH
--
Doug Steele, Microsoft Access MVP
Beer, Wine and Database Programming. What could be better?
Visit "Doug Steele's Beer and Programming Emporium"
http://I.Am/DougSteele/
Carroll Lastinger <carroll-...@atl.mediaone.net> wrote in message
news:hrCv5.2723$Lh2.9...@typhoon.southeast.rr.com...
But I get a compile error on the following line:
[pasted as one single long line]
Declare Function aht_apiGetOpenFileName Lib "comdlg32.dll" Alias
"GetOpenFileNameA" (OFN As tagOPENFILENAME) As Boolean
that says: Compile Error:
"Only comments may appear after End Sub, End Function, or End Property.
...which is the first line after the first "End Type"
Why is that?
"Douglas J. Steele" <djst...@idirect.com> wrote in message
news:eXwx72WHAHA.196@cppssbbsa05...
"Carroll Lastinger" <carroll-...@atl.mediaone.net> wrote in message
news:4TJv5.2804$IV1.8...@typhoon.southeast.rr.com...