Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can import data from Excel to a non protected access database using the
code below. How can I amend the code to import the data when 'myDatabase' is password protected ? Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=myExcelFile;Extended Properties='Excel 8.0;HDR=YES;'" Comm.CommandType = CommandType.Text Comm.CommandText = "SELECT * INTO tblNew IN 'myDatabase' FROM [Sheet1$]" Comm.Connection = Conn Conn.Open() Comm.ExecuteNonQuery() Conn.Close |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Database query to import from Access to Excel | Excel Discussion (Misc queries) | |||
How to import data from Access Database. | Excel Programming | |||
How to import multiple sheet of excel into Access database to a diffrent tables?? | Excel Discussion (Misc queries) | |||
Import to excel Access database directly to a variable (not using sheets) | Excel Programming | |||
Excel error while trying to import data from an Access database - MSQRY32.exe has generated errors | Excel Discussion (Misc queries) |