Results 1 to 12 of 12
  1. #1
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107

    Creating a file upload function where selections save the document(s0 into different areas?

    Hi all,



    I have no idea if this is even possible or possible for someone with my skill set but if anyone can help with the following I'd be very happy:

    I work in a school where teachers have to archive their assessments and other documents monthly. Currently they email them to a set email address but I was wondering if it would be possible for me to make something with access whereby they can do this. I'd like to make a form where they selected their name and then attached a file, this file would then be saved in an area I would have assigned that persons name to, does this make sense? I want it to be simple as possible, very simple so just a name section from a dropdown then a file upload section and done.

    Any help MUCH appreciated


    Regards


    Scott

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Yes, that can be done.

    How would they 'select' the file to copy - Windows file picker dialog? http://blogannath.blogspot.com/2010/...cks-using.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Hi there,

    Yes a file picker would be fine! This is very exciting if this is possible and not too difficult for me to actually do

  4. #4
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Is it possible to use the attachment file type at all?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Files can be embedded into attachment field. Lots of large files will quickly use up Access 2GB size limit.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Oh of course that makes sense. So is there a way to get it to change where it is saved (so in a particular folder on the server) that would be good but doing so without the user knowing. Thanks for your help.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What do you mean by 'without the user knowing' - user is picking the file, they know something is happening.

    User picks file and code can save it wherever. Use FileCopy() intrinsic function.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Oh when I say without the user knowing I mean they don't know where its being saved to on the server

  9. #9
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    I have never heard of the filecopy() function but will investigate it.

    Am I right in thinking that I create a table with the fields, Teacher Name (creating a dropdown list) and Upload file, then create a form with this and then somehow code the upload file field to make use of the filecopy() function?

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What do you mean by 'upload'? The file is already on your system somewhere? Don't you want user to just select the current file path and your code copies from that path to another?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Oh yes this is true, sorry I'm terrible with using the correct terminology it seems. Yes the user will have a file on their machine somewhere and I want it copied to a specific location on our server, hope that makes sense. most people use laptops and I commonly create a split database front end for them to use whilst linked to the schools wifi so networked that way. Hope this makes more sense.

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Okay FileCopy() might be able to do that. Could depend on user permissions for the destination folder.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-18-2013, 02:23 PM
  2. Replies: 5
    Last Post: 06-03-2013, 12:58 PM
  3. Importing CSV file into 2010/creating save import routine
    By rbtrout in forum Import/Export Data
    Replies: 5
    Last Post: 08-05-2011, 08:54 AM
  4. Replies: 9
    Last Post: 01-20-2011, 02:22 PM
  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