Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 606449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:15:19+00:00 2026-05-13T17:15:19+00:00

Hi i am trying to update a excel file using the oledb connections. But

  • 0

Hi i am trying to update a excel file using the oledb connections. But i am getting the following error:
“No value given for one or more required parameters.”
This is my code:

String sConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath(@"TempUploads\" + hdnExcelName.Value) + ";Extended Properties='Excel 8.0;HDR=NO'";
    OleDbConnection objConn = new OleDbConnection(sConnectionString);
    objConn.Open();
    string sql = "update [Sheet1$] set [A8]='apple1.jpg'";
    OleDbCommand objCmdSelect = new OleDbCommand(sql, objConn);
    objCmdSelect.ExecuteNonQuery();
    objConn.Close();

thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:15:20+00:00Added an answer on May 13, 2026 at 5:15 pm

    With HDR=No, the various columns are referred to as F1, F2, F3 etc. A8 is not suitable.

    The SQL should be on the lines of:

    UPDATE [Sheet1$] SET F1='apple1.jpg' 
    WHERE F2='Blah'
    

    EDIT re comment

    strSQL = "SELECT f1 From [Sheet1$a8:a8]"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this error when trying to update excel sheet : Server Error
I'm trying to update an Excel file from Outlook (Office 2010). How do I
I am trying to delete more than one column in my excel sheet. For
I am trying to update an already existing Excel file Test.xls Now, instead of
I am trying to read an Excel file with C# and I keep getting
I'm trying to create an OleDb connection to an Excel file that is located
Im trying to update a table with the following code. If I change WHERE
I trying to update a model on a callback but the validation is causing
When trying to update a subversion working copy from Netbeans, I get the following
I am trying to update the value of a column where it matches a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.