I'm fairly new to VBA, but I have imported Excel files into a tbl using VBA before and it worked. This time I am getting an error that says
Field 'F1' doesn't exist in destination table 'tblWhatever'
Can anyone point me in the right direction? I have already spent a lot of time re-checking the calling parameters, Excel file and table design many times over.
Thanks so much!
5 2416
I'm fairly new to VBA, but I have imported Excel files into a tbl using VBA before and it worked. This time I am getting an error that says
Field 'F1' doesn't exist in destination table 'tblWhatever'
Can anyone point me in the right direction? I have already spent a lot of time re-checking the calling parameters, Excel file and table design many times over.
Thanks so much!
I'm not sure what causes it, but adding Field [F1] to 'tblWhatever' prior to the Import will solve the problem.
I'm not sure what causes it, but adding Field [F1] to 'tblWhatever' prior to the Import will solve the problem.
I did try that, but then the error says
Field 'F2'...
I added "F2" and it said
Field 'F3' doesn't exist...
I'm not sure what causes it, but adding Field [F1] to 'tblWhatever' prior to the Import will solve the problem.
Can you offer any help on this?
As I mentioned, I had already tried this, but it didn't work.
Can you offer any help on this?
As I mentioned, I had already tried this, but it didn't work.
Make sure that the hasfieldnames Argument is specified correctly: - DoCmd.TransferSpreadsheet [transfertype][, spreadsheettype], tablename, filename[, hasfieldnames[, range]
Make sure that the hasfieldnames Argument is specified correctly: - DoCmd.TransferSpreadsheet [transfertype][, spreadsheettype], tablename, filename[, hasfieldnames[, range]
Yes, I needed to specify 'TRUE' for that argument! Problem solved.
Thank you for your help.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Little PussyCat |
last post by:
Hello,
I nee to write something that will transfer excel data into an SQL Server
table.
I have for another database application I wrote have it importing Excel
spreadsheet data using cell by...
|
by: Mr. Bungle |
last post by:
When importing excel from access I am fully aware that one can import
directly into a table. Can you get as specific via code or something
to import data from an excel sheet to a FORM (Not Table)...
|
by: Mr. Bungle |
last post by:
When importing excel from access I am fully aware that one can import
directly into a table. Can you get as specific via code or something
to import data from an excel sheet to a FORM (Not Table)...
|
by: Don W. Reynolds |
last post by:
Hi All,
I am sent an excel spreadsheet on a daily basis. Sometimes it contains 10
rows; sometimes it contains over 5000 rows. I copy this spreadsheet into
another spreadsheet and verify the...
|
by: D.Stone |
last post by:
I'm trying to import an Excel spreadsheet into an existing Access
table using Office 2003. Ultimately, the plan is to do it
programmatically using TransferSpreadsheet, but to check that the file...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
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...
| |