Importing Excel spreadsheets

J

Jim Jones

I need some help with an error message I don’t understand.

I am using the following expression to inport from an Excel spreadsheet
named BS.xls to a table called BS

DoCmd.TransferSpreadsheet acImport, , "BS", "\a path\BS.xls", True

where 'a path' represents the location of BS.xls on my network

It works fine. Then I use a corresponding expression to inport from another
spreadsheet called DVS.xls, the format of which is intended to be the same.
However, when I attempt to inport from this spreadsheet, I get the following
error message

Run-time error 3709
The search key was not found in any record

I can detect no difference between the 2 speadsheets

Any help would be much appreciated.

Jim Jones
 
H

Hoardling via AccessMonster.com

You did add the " " around the new excel sheet and the path?
 

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