Help Importing Excell Files

  • Thread starter Thread starter swichman
  • Start date Start date
S

swichman

Can somebody help me with the below expression?

I am getting a syntax error.


Much appreciated.

Docmd.TransferSpreadsheet
(acImport,acSpreadsheetTypeExcel9,"DrawingsCurrentRevImport","C:
\Documents and Settings\swichman\My Documents\ABFJV\SubmittalReports/
PMIVExport.xls",,,)
 
Without even testing or looking up the function I notice a forward slash in
your path?

"C:\Documents and Settings\swichman\My
Documents\ABFJV\SubmittalReports/PMIVExport.xls"

Shouldn't it be

"C:\Documents and Settings\swichman\My
Documents\ABFJV\SubmittalReports\PMIVExport.xls"
 
Eliminate the parentheses. You don't need them when using this VBA
statement.
 
Eliminate the parentheses. You don't need them when using this VBA
statement.

--

Ken Snell
<MS ACCESS MVP>









- Show quoted text -

STILL DOES NOT WORK. I FEEL LIKE AN IDIOT
 

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

Back
Top