Import Specification -- Cannot Find??? I'm sure it's there!

CPGDeveloper

Board Regular
Joined
Oct 8, 2008
Messages
126
I'm trying to execute this line of code:

DoCmd.TransferText acLinkDelim, "TheUploadSpec2", "ltUpload", upPath & upFileNm, True

I keep getting Error '3625' -- Specification Does Not Exist.

But I swear it absolutely does! When I go to External Data>New Data Source>From File>Text File...I click 'Advanced' and then 'Specs' and I see three specifications listed there. No matter which one I use, I still get Error 3625.

In code in the immediate window when I enter the following:
?Access.CurrentProject.ImportExportSpecifications(0).XML

It again tells me the specification does not exist. I've used Import Specs in vba in other databases without any issue.

Is there some setting or property that I'm missing?
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,629
Office Version
2013
Platform
Windows
What is a link delimited file (acLinkDelim)? Is that supposed to be an export or an import? What kind of file is it you are importing or exporting?
 

stumac

Active Member
Joined
Jul 16, 2010
Messages
471
Are you sure you have the correct spec name? Check by running this query:

Code:
SELECT SpecName, Count(FieldName) AS Fields FROM MSysIMEXColumns INNER JOIN MSysIMEXSpecs ON MSysIMEXSpecs.SpecID = MSysIMEXColumns.SpecID GROUP BY SpecName
If you edit that query in design mode you can add in additional fields from the system tables to check the type etc all look ok.
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,096,141
Messages
5,448,565
Members
405,519
Latest member
cj720m

This Week's Hot Topics

Top