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

CPGDeveloper

Board Regular
Joined
Oct 8, 2008
Messages
130
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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,649
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,099,679
Messages
5,470,091
Members
406,681
Latest member
sachinmasurkar

This Week's Hot Topics

Top