Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open _
"Provider = Microsoft.Jet.OLEDB.4.0; " & _
"Data Source = c:\a_temp\db1.mdb"
DoCmd.TransferSpreadsheet acImport, 5, "zzz", "c:\a_temp\november.xls", false
Option Explicit
'ImportXL.vbs
Const conDatabaseToOpen = "C:\Docs\Tek-Tips.mdb"
Const conXLFileToImport = "C:\Docs\Tek-Tips.xls"
Dim AcApp
Set AcApp = CreateObject("Access.Application")
AcApp.Visible = True
AcApp.OpenCurrentDatabase conDatabaseToOpen
'0=acImport
'9=acSpreadsheetTypeExcel9
AcApp.DoCmd.TransferSpreadsheet 0, 8, "XLTable", conXLFileToImport
AcApp.UserControl = True
commandstring = "SELECT * INTO newtbl FROM [Excel 8.0;HDR=Yes; Database=c:\a_temp\newhear.xls].sheet1"
objConnection.Execute commandstring