I'm trying to import .xlsx file to the table "Original_Tapesheet" but while running I'm getting Runtime error 2391 saying field not available in the destination table.
Please help to fix this errorPlease Login or Register to view this content.
I'm trying to import .xlsx file to the table "Original_Tapesheet" but while running I'm getting Runtime error 2391 saying field not available in the destination table.
Please help to fix this errorPlease Login or Register to view this content.
Last edited by alansidman; 10-08-2020 at 09:15 PM.
are you running this code in access or excel? this is an access question I think, and you posted in an excel forum. your 3rd argument is the target table name. the error makes perfect sense, as what it is saying is that there isn't any congruency or consistency between the 2 tables, whether that be number of fields between the 2, the data types matches between the 2, or possibly something else. are you sure you've covered all that? it's also possible, although low probably that the XML type you specified is not what you should be telling the VBE to import.
https://docs.microsoft.com/en-us/off...ferspreadsheet
https://docs.microsoft.com/en-us/off...preadsheettype
Code Tags Added
Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html
(I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks