Transfer Spreadsheet

G

Guest

Hi

I am running the flowing code to import an excel Spreadsheet in to an
existing table that has filed names

DoCmd.TransferSpreadsheet acImport, , "Table1", "c:\temp.xls", False

And I get this error

Run-time error 2391

Field ‘F1’ Doesn’t exist in destination ‘table1’
 
S

Stefan Hoffmann

hi Matt,
I am running the flowing code to import an excel Spreadsheet in to an
existing table that has filed names
DoCmd.TransferSpreadsheet acImport, , "Table1", "c:\temp.xls", False
And I get this error
Run-time error 2391
Field ‘F1’ Doesn’t exist in destination ‘table1’
The field names in your table are not the same as in your Excel sheet.

Create a import specification using the import wizard and use it with
the TransferSpreadsheet method (see OH).


mfG
--> stefan <--
 
S

Stefan Hoffmann

hi Matt,
Where dose the import wiser hid in access 2003 and what is see OH
Just import your file manually (Files/External data). There is button in
the left-bottom corner of the import wizard (maybe called more).

OH: online help.


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top