473,511 Members | 16,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: Field 'F1' doesn't exist in destination table. I've created import Specs but still get same error...

I'm automating the import of all text files into Access from a source
folder. I was getting the "Field 'F1' doesn't exist in destination
table" error, so I checked it out on the net and it said to create a
import specification. So I did this (InductionImport), and included it
in my code as below:

DoCmd.TransferText acImportDelim, InductionImport,
"ImportedInductionLots", CurrentPath & strfile, 0

I created the import specs as per Microsoft's explanation:
http://support.microsoft.com/default...b;EN-US;142186

I'm at a loss as to how to fix it... except just calling the field
names F1 - F12 and renaming them later (which is a lot of mucking
around and a bit untidy). From what I understand, this Spec should
rename the fields as they are imported to match the names in the table.
And when I did it manually, it worked...

All ideas appreciated...

Cheers

Reg

Nov 13 '05 #1
4 8291
DoCmd.TransferText acImportDelim, "MAIN Import Specification", "MAIN",
strFileToImport, True

Based on one I have that works, this is what I think is wrong - the
order of your arguments is wrong.

the second argument should be in quotes (the name of the import
specification). That should fix it. No, the import spec does not
rename any fields, it just maps values in the CSV file to the table.

Nov 13 '05 #2
DoCmd.TransferText acImportDelim, "MAIN Import Specification", "MAIN",
strFileToImport, True

Based on one I have that works, this is what I think is wrong - the
order of your arguments is wrong.

the second argument should be in quotes (the name of the import
specification). That should fix it. No, the import spec does not
rename any fields, it just maps values in the CSV file to the table.

Nov 13 '05 #3
Thankyou... works a charm.... excellent....

Nov 13 '05 #4
Thankyou... works a charm.... excellent....

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
10084
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
17
7440
by: Steve Jorgensen | last post by:
If you've ever employed custom error numbers and messages in you programs, you've probably ended up with code similar to what I've ended up with in the past something like... <code> public...
1
1559
by: Dan | last post by:
I can't figure out this error message. Could someone please help. I have a text file in Notepad with the following 4 fields (Cont, Code, List, and Numb)all of which are single tab delimited, and a...
1
3401
by: Don Leverton | last post by:
Hi Folks, I have been given a CD with approx 130 .xls files (bean-counters!) that I would like to import and merge to ONE table (tblTradeshow). The XL files are *similarly*, but not...
2
8664
by: Robert McEuen | last post by:
Using Access 97, Windows XP I'm receiving a Numeric Field Overflow error during text import that I did not receive before I split my database. Another thread I found suggested that the cause of...
3
6860
by: Nathan Bloomfield | last post by:
Hi there, I am having difficulty with a piece of code which would work wonders for my application if only the error trapping worked properly. Basically, it works as follows: - adds records...
0
417
by: Regnab | last post by:
I'm automating the import of all text files into Access from a source folder. I was getting the "Field 'F1' doesn't exist in destination table" error, so I checked it out on the net and it said to...
9
9667
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
11
5556
by: xenoix | last post by:
hey there, im reasonably new to C# and im currently writing a backup application which im using as a learning resource. My PC :- Visual Studio 2005 .NET Framework 2 Component Factory Krypton...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.