Results 1 to 6 of 6
  1. #1
    rbtrout is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    15

    Importing CSV file into 2010/creating save import routine

    I'm not sure whether this should be 2 separate posts, but since it's a similar problem -
    I created a program in 2003. It has a saved import routine that imports a CSV file from C:\program files\exports\data.csv. No problems.



    In 2010, that function stopped working as Access said that the import routine 1 didn't exist. I recreated it in 2010.

    First of 2 problems -
    The import routine doesn't import the data as entered, which makes it very difficult to proof.

    Second of 2 problems -
    I thought that deleting the saved import specs and re-creating them with a different name might solve the problem. No go. When I go to the import step in the macro and try to select the newly named/saved routine, it doesn't appear in the list. No matter what I've done (even compact/repair), no luck.

    I'm stumped at this point and could sure use the help.

  2. #2
    rbtrout is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    15
    Guess I'm SOL.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    The problem may be that you're using an import spec name or export spec name in 2010. To my knowledge (with 2007) you can not use specification names in your VB code within access anymore. Why they removed that functionality is beyond me. You are more likely going to be required to save the import steps and call that process rather than using the name of the import spec.

  4. #4
    rbtrout is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    15
    I am using a spec name. I'll check into this and see what happens. Thanks for the help.

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    DoCmd.TransferText acImport("Your Import Saved Process Name Here")

  6. #6
    rbtrout is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    15
    That was it. Thanks again for the help!

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

Similar Threads

  1. How to import a .dta file into Access 2010?
    By Louie in forum Import/Export Data
    Replies: 4
    Last Post: 07-26-2011, 06:14 PM
  2. Importing large txt file into Access 2010
    By Jimbo in forum Import/Export Data
    Replies: 6
    Last Post: 06-30-2011, 08:26 PM
  3. Importing Excel file. (2 non numeric values won't import)
    By Amerigo in forum Import/Export Data
    Replies: 3
    Last Post: 05-20-2011, 11:31 AM
  4. Replies: 3
    Last Post: 02-09-2011, 07:43 AM
  5. Example Importing routine
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-24-2010, 12:35 AM

Tags for this Thread

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