Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    carcement is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    15
    Sure, here's the link in my dropbox:


    https://www.dropbox.com/s/1xd3sofufp...bmission.accdb

    The form allows me to add the images to the submit table, I just double click in the attachment box and select a random picture from my hard drive.

  2. #17
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Umm it works. Did you try deleting the data from IMGDEST before re-running your code?

  3. #18
    carcement is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    15
    Hm, that's strange as it doesn't work for me. I do clear out IMGDEST before running the code.

  4. #19
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    The version of the database you just uploaded to me there is data in the IMGDEST table. There is no deletion of data in the code on the SUBMIT button either. So I would suggest deleting the data by hand (for now) re-running your code (as I did) and you'll find an image in door 3.

  5. #20
    carcement is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    15
    Hm, I think I've found the problem - the code apparently only works if the route # is unique.

  6. #21
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Correct, there is no 'unique identifier' that is being carried from one table to the next to help identify it as such. If you want that functionality you can do one of two things:

    1. Carry the PK from your SUBMIT table to your IMGDEST, something like SUBMITID
    2. Remove the check in the code that is checking to see if there is a record already existing in the IMGDEST table. Just a warning if you do this though you will basically be copying every record from your SUBMIT table to your IMGDEST table every time you run the code which will make it slower. The code currently only adds 'new' records (new routes which you'd have to change to new SubmitID's).

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 11-15-2013, 07:01 AM
  2. import table to append to a table in Access 2010
    By Stephanie53 in forum Forms
    Replies: 2
    Last Post: 05-23-2013, 03:40 PM
  3. Linked Table Append Query Problem.
    By dlab85 in forum Queries
    Replies: 4
    Last Post: 03-13-2013, 07:30 AM
  4. Replies: 0
    Last Post: 11-30-2010, 12:23 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 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