Results 1 to 4 of 4
  1. #1
    nhylan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    12

    Really close to figuring out this import issue


    I am really close to figuring this import method out. If the file that I'm importing from is open it does import but otherwise I'm getting run-time errors 424 or 3274. I don't know if the issue is something on the range I've selected or what but if you have any ideas I'd really appreciate it.

    Code:
    Private Sub Command61_Click()
        DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12Xml, "t1blotter", "G:\ROCK\Trade Processing Unit\Trade Recaps\Blotters\BLK-SSBEAST_Trade_Recap" & Format(Date - 1, "_mmddyyyy_2100.xl\s"), True, "A11:CM1048576"
    End Sub
    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Probably need to prefix the range with sheet name.

    "Sheet1!A11:CM1048576"
    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
    nhylan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    12
    Thanks June7. Would you apply whatever the name of the tab was or will sheet1 always work for the first tab in the workbook?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    I have seen issue with reference to SheetX if the sheets are created then rearranged, otherwise should work.
    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. delete
    By steelcurtain11 in forum Access
    Replies: 1
    Last Post: 03-12-2013, 11:57 PM
  2. dBase import/link issue
    By SteveF in forum Import/Export Data
    Replies: 3
    Last Post: 04-16-2012, 05:19 PM
  3. I need help figuring out an iif function..
    By kduznetsov in forum Access
    Replies: 1
    Last Post: 03-30-2011, 10:07 AM
  4. Not figuring out dlookup (RunTime 2465)
    By Gilligan in forum Access
    Replies: 10
    Last Post: 03-08-2011, 02:48 PM
  5. Need help figuring out stuff
    By Buakaw in forum Access
    Replies: 3
    Last Post: 01-31-2011, 02:59 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