Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is my code. The "Update" statement gives an
error "Too few parameters. Expected 1" Thanks in advance for any info. regarding this Dim m_sConn1 As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=dsn=ratesexcelfile;" & _ "Extended Properties=""Excel 10.0;HDR=YES""" Dim connString As String connString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=ExcelData2.xls;" & _ "Extended Properties=""Excel 8.0;HDR=YES""" objconnection = New OleDbConnection(connString) objconnection.Open() 'open the connection Dim cmd1 As New OleDbCommand cmd1.Connection = objconnection cmd1.CommandText = "UPDATE [InventoryData$A4:A4] SET A4 = '1' where (A4< 'Cell I4') " cmd1.ExecuteNonQuery() objconnection.Close() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Updating Problem with Large Excel File | Excel Discussion (Misc queries) | |||
Bizarre Excel 03 Problem - autosum not updating when cells are cha | Excel Worksheet Functions | |||
Problem with updating links in Excel 2003 | Excel Worksheet Functions | |||
Problem with updating links in Excel 2003 | Excel Worksheet Functions | |||
Excel VBA - Updating of data problem | Excel Programming |