-----Original Message-----
Stephan
I am only using the 'BrowseForFolderByPath' function, and
not the BrowseForFolderByPIDL function (which as I
understood was an alternative method to achieve the
functionality of opening a Browse for Folder at a specific
folder). When i put the 'BrowseForFolderByPath' function
in a class module and tried to compile it, an error was
returned that the calling reference ([cmdBrowse] in my
form) couldn't find this function. I then put this
function back into the form code with my [Browse] button,
and it worked fine. Is this dangerous (i.e. Likely to
cause GPF's)? p.s. I deleted the BrowseForFolderByPIDL
function, as I wasn't using it.
Since your last reply I have put the 'GetPIDLFromPath'
function in a class module, and it's working okay. I am
assuming I should also be putting
the 'BrowseForFolderByPath' function also in this class
module??
Thanks again for your help.
Michael Daly
-----Original Message-----
Not sure where you are having a problem Michael. Did you
look at the
code behind the sample Form? IT is the 2 public functions,
BrowseForFolderByPIDL and GetPIDLFrom Path that must
reside in the
calling Form's class module just as they are in the
sample Form. Make
sure you place these 2 functions directly behind any form
calling these
functions. The other 2 code modules, modCallBacks and
modFileNameDialog
are standard code modules, just import them into your own
app.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can
benefit.
message
Stephan
Thanks very much for your reply. I'm a fan of your
excellent site.
One question: When I move the code to the class module
as
recommended in the code from your site, and I try
to 'Compile and Save' I get an error "Sub or Function
not
defined"
How do you reference a function in a class module?
Thanks again.
Michael Daly
22 Sept 2003
-----Original Message-----
See:
http://www.lebans.com/callbackbrowser.htm
Bug Fix! June 13/2003 The calling functions must reside
in the Form's
Class module or you will GPF at intermittent times.
Thanks to Richard
Bernstein for the head up!
Functions to allow you to specify the opening