Results 1 to 3 of 3
  1. #1
    Jason C is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2013
    Posts
    1

    Invalid Argument when importing .csv into Access 2007 DB using a Macro

    Hi all, newbie to this forum here. I've got a predicament that I am working on. We have an access database (.mdb) and I am trying to use a Macro we created that imports a few lines of Import Delimited text from a .csv file. Everything works just fine on a Windows XP computer, but when running the Macro on a Windows 7 PC, I get a message stating "Invalid Argument" and the records do not get imported. We tried the Compact and Repair tool with no resolution. Here is my Macro:
    Code:
     SetWarnings - No; OpenTable - AddressInfo, Datasheet, Edit ; TransferText - Import Delimited, Current Import Specification, AddressInfo, C:\UPSInv\Current\Current.csv, No, , 50001 ; RunSQL - UPDATE AddressInfo SET Addressinfo.PackageType = "Standard Flats" ; SetWarnings - Yes ; CloseDatabase
    Anyone have any ideas? Much appreciated! Thanks!

  2. #2
    qa12dx is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    india
    Posts
    112
    since ur file is formated the same, why dont u just link to file to ur db. everytime u have a new file all u have to do is replace the old file. and then run ur qry and stuff.

  3. #3
    tanvi is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    100
    Check this post: http://answers.microsoft.com/en-us/o...6-204bd3737eb1
    Hope it will work for you to resolve the issue!!

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

Similar Threads

  1. Invalid Procedure Call or Argument
    By Trojnfn in forum Access
    Replies: 2
    Last Post: 10-29-2012, 01:44 PM
  2. Replies: 8
    Last Post: 06-18-2012, 03:49 PM
  3. Invalid argument
    By wharting in forum Import/Export Data
    Replies: 4
    Last Post: 10-19-2011, 11:49 PM
  4. Invalid Argument on update query in v2010
    By DropDeadDavey in forum Queries
    Replies: 2
    Last Post: 07-28-2011, 06:27 PM
  5. Invalid Argument Error
    By koper in forum Access
    Replies: 2
    Last Post: 06-14-2010, 11:22 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