Results 1 to 4 of 4
  1. #1
    AlexisW is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    12

    Report How many records were imported

    I have created a script that imports an excel spreadsheet to Access. Now I'm trying to have the script tell the user how many records were imported
    I have used the TransferSpreadsheet command, however everytime the user runs the command the range will be different (User picks their own file to import) so I have no idea how many records are imported

    Is there any easy way of finding out how many records were imported? It is simply to inform the user what has happened

    Thank you for any help!




    I have also posting this question here:
    http://www.excelforum.com/access-pro...-imported.html

  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 TransferSpreadsheet returns that info. If nobody else would be adding records, you could count the records in the destination table before and after.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AlexisW is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    12
    Thank you so much for the suggestion, it works great!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help, and welcome to the site by the way!
    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. Imported data has different ID
    By cheyanne in forum Forms
    Replies: 48
    Last Post: 05-28-2012, 09:47 AM
  2. Replies: 5
    Last Post: 03-01-2012, 01:11 PM
  3. Replies: 4
    Last Post: 12-13-2010, 05:33 PM
  4. printing imported pictures in a report
    By Jsrogol in forum Reports
    Replies: 1
    Last Post: 08-19-2010, 04:34 PM
  5. Help with imported data
    By bubbasheeko in forum Queries
    Replies: 0
    Last Post: 01-12-2007, 07:12 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