Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2014
    Posts
    1

    upload a file

    Hi, I am a newbie in access

    I have a data base file, in which I have created a button.


    I want this button to open me a dialog box in order to allow the user of my project to choose a file from
    his computer and save it in the project directory place.

    I have used uploadfile function in VB (where may be found at http://msdn.microsoft.com/en-us/library/ms127893.aspx)
    The message I get when I click the button is: Compile error: Expected End Sub.I have added a picture describing the building event of the access page.
    What should I do?

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	5 
Size:	92.0 KB 
ID:	17906

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I don't think that .Net code will work in Access, but your error is because you start one sub within another. Deleting the line in yellow will get rid of that error.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Teradata Upload
    By Paul H in forum Import/Export Data
    Replies: 7
    Last Post: 04-29-2014, 09:59 AM
  2. upload to excell
    By mujahid in forum Import/Export Data
    Replies: 11
    Last Post: 10-30-2013, 04:20 PM
  3. Upload Failed
    By Scott.Pritchard in forum Forum Suggestions
    Replies: 1
    Last Post: 05-16-2013, 07:29 AM
  4. Text File Upload Issue
    By shabar in forum Access
    Replies: 11
    Last Post: 01-30-2013, 06:35 AM
  5. Upload file inside .mdb database file
    By havish in forum Access
    Replies: 0
    Last Post: 07-30-2008, 07:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums