You have not imported all of the code and class modules from the sample
ReportToPDF MDB you downloaded from my site. The GetUniqueFileName function
requires the class module "clsCommonDialog" and the standard code modules
"modReportToPDF". You cannot use my solution without importing these modules
into your own MDB. This is all clearly defined in the "Dependencies" section
of the Source code comments at the top of the modReportToPDF module.
'Dependencies: DynaPDF.dll StrStorage.dll clsCommonDialog
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"MLH" <CR**@NorthState.netwrote in message
news:5t********************************@4ax.com...
I'm having a problem running this code line:
strPathandFileName = GetUniqueFilename(strPath, "SNP" & Chr(0), "snp")
Compile error message tells me "Can't find project or library". Msg
box has OK and HELP buttons. Clicking OK opens the Tools 'n
References dialog. I'm afraid I don't know what to choose there.
Am trying to make use of Lebans PDF creation code.