Needed a little help on an access program I'm working on for PCHHQ it uses the DoCmd.TransferSpreadsheet to export or import data. It's run off a button on a form with this code
this is the export code it works
Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "Data Feed Query", "D:\ExportData.xls"
MsgBox ("Done!")
End Sub
this is the problem code for import
Private Sub Command2_Click()
DoCmd.TransferSpreadsheet acImportDelim, acSpreadsheetTypeExcel12, "Data Feed", "C:\DataFeed\Data Feed.txt", False
End Sub
I get this error
run time error 3274
I get an error "Run-time error '3274': External table isn't in the expected format" ...
I have saved the file that is getting imported as txt tab delimited. So I'm a little stuck any ideas?

Sign In »
Register Now!
Help


Back to top












