Import eksport excel files

G

Guest

Hi
I have this
Private Sub eksporter_Click()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"tblSportsgren", "C:\valutakurser.xls"
End Sub
this working
Then i try this
Private Sub importer_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9,
"C:\valutakurser.xls", "tblvalutakurser"
End Sub
But then i get a error

resgards
Alvin
 

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