View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected][_2_] gimme_this_gimme_that@yahoo.com[_2_] is offline
external usenet poster
 
Posts: 236
Default SQL - Insert from Excel HELP!

Long shot: Add keyword values and swap out spaces in the path with
%20.

Try:

INSERT INTO rpt_NewLoanMonitor VALUES SELECT * FROM [DataSource] IN 'C:
\Working%20Files\SQL_Scheduler.xls' 'Excel 8.0;'

Even if the syntax is OK the statement won't work if the number of
columns in rpt_NewLoanMonitor doesn't equal the number of columns in
SQL_Scheduler.xls.