I'm trying to use the code from this faq to allow users to open external files from a form.
In the code on the form I've tried two different bits of code, neither work the way I'd hoped.
One is:
DoCmd.OpenStoredProcedure (fHandleFile("c:\test.txt", WIN_NORMAL))
Which opens the file, but also pops up a message box saying "Access can't find the object '-1'.
The second is:
Print fHandleFile("c:\test.txt", WIN_NORMAL)
Which opens the file, but also pops up a message box saying "Object doesn't support this property or method."
Has anyone one successfully used the code supplied in this FAQ? If so, could they offer some ideas on what I'm doing wrong?
Thanks, Doug
In the code on the form I've tried two different bits of code, neither work the way I'd hoped.
One is:
DoCmd.OpenStoredProcedure (fHandleFile("c:\test.txt", WIN_NORMAL))
Which opens the file, but also pops up a message box saying "Access can't find the object '-1'.
The second is:
Print fHandleFile("c:\test.txt", WIN_NORMAL)
Which opens the file, but also pops up a message box saying "Object doesn't support this property or method."
Has anyone one successfully used the code supplied in this FAQ? If so, could they offer some ideas on what I'm doing wrong?
Thanks, Doug