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

CPGDeveloper

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

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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?
 
Upvote 0
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:
Upvote 0

Forum statistics

Threads
1,213,515
Messages
6,114,080
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top