file dialog

  • Thread starter Paul Stenlund via AccessMonster.com
  • Start date
P

Paul Stenlund via AccessMonster.com

I am trying to use this code to select a file

http://www.mvps.org/access/api/api0001.htm

when I try to run it I get "Only comments may appear after end sub, end function or end property" Debug lights up the function declaration following the "end Type" statement. Can someone help.

thanks
Paul

*****************************************
* This message was posted via http://www.accessmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.accessmonster.com/Uwe/Abuse.aspx?aid=2b17679be75e489b8f34631e19add099
*****************************************
 
A

A C

Have you pasted the code into an existing sub/function? Try inserting that
code at the top of your module.

Regards
AC

Paul Stenlund via AccessMonster.com said:
I am trying to use this code to select a file

http://www.mvps.org/access/api/api0001.htm

when I try to run it I get "Only comments may appear after end sub, end
function or end property" Debug lights up the function declaration following
the "end Type" statement. Can someone help.
 

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

Top