I have a Web application that needs to update a Microsoft Excel spreadsheet
for complex calculations, whereby I read the results into a dataset for
display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to
use and SQL update statement to update a cell in my spreadsheet, but I keep
receiving the error: No value given for one or more required parameters.
From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index]
= 1
BallisticInfo is the name of the spreadsheet and Info and Index or column
names. Any ideas? 6 1643
On Wed, 2 Nov 2005 10:10:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:
¤ I have a Web application that needs to update a Microsoft Excel spreadsheet
¤ for complex calculations, whereby I read the results into a dataset for
¤ display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to
¤ use and SQL update statement to update a cell in my spreadsheet, but I keep
¤ receiving the error: No value given for one or more required parameters.
¤
¤ From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index]
¤ = 1
¤
¤ BallisticInfo is the name of the spreadsheet and Info and Index or column
¤ names. Any ideas?
So "Info" and "Index" are values in respective cells of the first row in the BallisticInfo
Worksheet?
In addition, have you specified HDR=Yes in your connection string?
Paul
~~~~
Microsoft MVP (Visual Basic)
Try
UPDATE [BallisticInfo$] SET [Info] =3200 WHERE [Index] = 1
HTH
Elton Wang
"Jim" wrote: I have a Web application that needs to update a Microsoft Excel spreadsheet for complex calculations, whereby I read the results into a dataset for display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to use and SQL update statement to update a cell in my spreadsheet, but I keep receiving the error: No value given for one or more required parameters.
From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index] = 1
BallisticInfo is the name of the spreadsheet and Info and Index or column names. Any ideas?
I tried that parameter, and OLE DB throws this exception: Could not find
installable ISAM.
"Paul Clement" wrote: On Wed, 2 Nov 2005 10:10:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:
¤ I have a Web application that needs to update a Microsoft Excel spreadsheet ¤ for complex calculations, whereby I read the results into a dataset for ¤ display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to ¤ use and SQL update statement to update a cell in my spreadsheet, but I keep ¤ receiving the error: No value given for one or more required parameters. ¤ ¤ From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index] ¤ = 1 ¤ ¤ BallisticInfo is the name of the spreadsheet and Info and Index or column ¤ names. Any ideas?
So "Info" and "Index" are values in respective cells of the first row in the BallisticInfo Worksheet?
In addition, have you specified HDR=Yes in your connection string?
Paul ~~~~ Microsoft MVP (Visual Basic)
I just tried that, and I received this exception: 'BallisticInfo$' is not a
valid name. Make sure that it does not include invalid characters or
punctuation and that it is not too long.
"Elton W" wrote: Try
UPDATE [BallisticInfo$] SET [Info] =3200 WHERE [Index] = 1
HTH
Elton Wang "Jim" wrote:
I have a Web application that needs to update a Microsoft Excel spreadsheet for complex calculations, whereby I read the results into a dataset for display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to use and SQL update statement to update a cell in my spreadsheet, but I keep receiving the error: No value given for one or more required parameters.
From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index] = 1
BallisticInfo is the name of the spreadsheet and Info and Index or column names. Any ideas?
On Wed, 2 Nov 2005 12:05:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:
¤ I tried that parameter, and OLE DB throws this exception: Could not find
¤ installable ISAM.
¤
The syntax is a little tricky once additional arguments are added.
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=e:\My Documents\Book20.xls;" & _
"Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
Paul
~~~~
Microsoft MVP (Visual Basic)
Thank you, that works
"Paul Clement" wrote: On Wed, 2 Nov 2005 12:05:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:
¤ I tried that parameter, and OLE DB throws this exception: Could not find ¤ installable ISAM. ¤
The syntax is a little tricky once additional arguments are added.
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=e:\My Documents\Book20.xls;" & _ "Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
Paul ~~~~ Microsoft MVP (Visual Basic) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: caroundw5h |
last post by:
I would like to manipulate my excel file as if it were a text file
with python (check for duplicates, uppercase etc.). I would like to
know:
1) how do convert it first to a CSV file and...
|
by: pmud |
last post by:
Hi,
I need to use an Excel Sheet in ASP.NET application so that the users can
enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever
the USER ENETRS needs to go to the...
|
by: Robin Tucker |
last post by:
Heres and interesting problem:
I have a VB.NET program that creates reports via. Word Automation. This all
works fine. What I want to do as part of this report generation process is
to embed a...
|
by: E-Cube |
last post by:
I am able to write to an existing excel file with data.
I am wondering how do I outline my rows while in I am writing data to the
excel file while in code?
Thank you for any help that you may...
|
by: spirit |
last post by:
Hi,
I have C++ code to write data to a .csv file thereby resulting in an
excel spreadsheet.
I was just wondering whether it wud be possible for us to further
manipulate the csv file like for...
| |
by: Paulo |
last post by:
using Excel;
Excel.Application ExcelApp = new Excel.ApplicationClass();
string workbookPath = Server.MapPath("excel\\produto1.xls");
Excel.Workbook excelWorkbook =...
|
by: Ed from AZ |
last post by:
I'm using Word 2003. I use a proprietary Java program that takes all
the information in the various forms and generates an XML file.
There
are times I need to move information between files. I...
|
by: Tzesho |
last post by:
A director of my company insists on using an Excel database to store his data. I have been tasked to come up with a new GUI in .NET C# that accesses and manipulates the data in his Excel database. ...
|
by: danny2000 |
last post by:
Hi all.
Please excuse my ignorance here, but is it possible and / or efficient to do things such as insert worksheets, make charts, pivot tables, filter data in an excel workbook using Perl?
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |