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

CPGDeveloper

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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,797
Office Version
  1. 2019
Platform
  1. 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,123,518
Messages
5,602,138
Members
414,505
Latest member
quoctrungvu99

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
Top