I'm working on a Sub to automate importing data from Excel to Access (table) and keeping getting an error msg:
Run-time error 3170. Could not find installables ISAM.
MS Access 2007, MS Office 12.0 Object Library is selected.
Any help will be appreciated
Run-time error 3170. Could not find installables ISAM.
MS Access 2007, MS Office 12.0 Object Library is selected.
Any help will be appreciated
PHP:
'Import files to the new tables
Sub ImportFiles()
'MsgBox "please select the US EOM file to import"
Dim fd As Office.FileDialog, FileName As Variant
'Set up the file dialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
With fd
'disable multiselect for one file selection
.AllowMultiSelect = False
.Title = "Please select US EOM report"
If fd.Show = True Then
FileName = fd.SelectedItems(1)
Else
cmdfiledialog = "EXIT"
End If
End With
'clear file dialog
Set fd = Nothing
MsgBox FileName
DoCmd.TransferSpreadsheet _
acImport, _
acstpradsheettypeexcel12, _
"EOM License Test", _
"FileName", _
True
'MsgBox x = selectFiles()
End Sub