Results 1 to 9 of 9
  1. #1
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96

    Deleting old import specs


    Is there an easy way to tell which import specs are currently being used and which ones aren't? I have an inherited database that has a bunch of import specs and I'm sure at least some of them are no longer being used, so I would like to clean them up. The reason for the spring cleaning is that I'm trying to export to the specs to another database and I'm getting an error that says "Not all of the import specs could be imported due to name conflicts" Since I need to fix some anyway, I figured I would clean out old ones so I'm not correcting ones that aren't needed anyway.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Are files imported manually or by Macros or VBA?
    If they are imported by Macros or VBA, you could search your VBA code and Macros for all the Import Specification names, and then delete the ones that are not found.

  3. #3
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    They are in macros and vba. I guess I can search the vba all at once, but is there a way to mass search macros or do I have to open each of them up? I ask because there are a LOT of macros in the database as well.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    but is there a way to mass search macros or do I have to open each of them up? I ask because there are a LOT of macros in the database as well.
    I don't know of any way to search all the Macros at once. You might need to open each one. You should just be able to focus on the import Actions (TransferText).

  5. #5
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    Well, I guess I'll roll up my sleeves and dive in. Wish me luck.

  6. #6
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    Ok, here's a twist. I starting searching the VBA and I decided to search for acImportDelim and review the import spec and the very first one I find isn't even displayed in the list of import specs. Can there be import specs written somewhere that wouldn't show thru the advanced button on the inport text wizard?

  7. #7
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    nevermind, I'm an ID10T. The bogus specs are tied to dead forms or buttons.

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Sounds like that database needs a lot of clean-up!

  9. #9
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    I won't throw my predecessor completely under the bus, because a little bit of it is my own doing, but yes it does and most of it was here when I took it over. I have finished my review and here is the breakdown:

    12 total import specs
    5 being used between macros and vba (that I can find)

    I'll make a backup copy and then delete the "extra" specs. Thanks for the guidance JoeM

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

Similar Threads

  1. Replies: 1
    Last Post: 10-24-2014, 05:55 AM
  2. Is there any way to get computer specs?
    By shubhamgandhi in forum Programming
    Replies: 2
    Last Post: 07-29-2011, 09:21 PM
  3. Import Specs gone after splitting database
    By thart21 in forum Import/Export Data
    Replies: 1
    Last Post: 07-16-2011, 04:06 PM
  4. Replies: 11
    Last Post: 12-14-2010, 01:25 PM
  5. Text Import Specs
    By orcinus in forum Access
    Replies: 3
    Last Post: 06-23-2010, 11:50 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