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

  • Home
  • SEARCH
  • 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 8528839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:53:33+00:00 2026-06-11T08:53:33+00:00

After insert in excel formula bar i got unwanted character ‘ which restricts the

  • 0

After insert in excel formula bar i got unwanted character ' which restricts the field type like date to convert in specific format

query="INSERT INTO [book$] ([Book Name]) VALUES ('" + txtbookname.Text +"')";

This value is of string type after insert

For example: if i have inserted I AM in excel cell it will be the same.

But when going to edit that cell it shows 'I AM. I dont want that ' character at start

  • 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-06-11T08:53:34+00:00Added an answer on June 11, 2026 at 8:53 am

    The ' (like you almost said) indicates that the cell is of the text type.

    In short, for text values, don’t sweat it: this is just Excel’s way of saying “this is a text content, not a formula or anything”. It doesn’t show up anyway. (Historical note: I believe this convention stems from original Lotus 123 compatibility, if memory serves).

    This is to prevent things from going wrong (imagine if you inserted the text =3*7, should it be interpreted as a formula?).

    Now, I haven’t used Excel with the OleDB provider before, but I’m almost sure that you can get the desired effect by actually inserting a date (or number, or …), instead of a string value. E.g.:

    INSERT INTO [book$] ([Copies]) VALUES (42)
    

    Would insert the cell content 42

    INSERT INTO [book$] ([Copies]) VALUES ('42')
    

    Would insert the cell content '42

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an after insert trigger that works well. However, I want it to
When im trying to insert image with path like this: /wombat/htdocs/web/icon.png after insert its
I've got the following trigger; CREATE TRIGGER trFLightAndDestination ON checkin_flight AFTER INSERT,UPDATE AS BEGIN
I have a trigger AFTER INSERT inside which I must update the value of
I want to create trigger which will be fired after insert into some table,
I've inherited a large project which uses Office.Interop.Excel to insert data into a spreadsheet.
After insert successfully i want to refresh the two page which i opened ,
something like: CREATE TRIGGER schema1.triggername AFTER INSERT ON schema2.table FOR EACH ROW BEGIN ;
I'm creating a trigger in SQL Server after INSERT, UPDATE and DELETE. Is there
I written a trigger on smslog table ALTER TRIGGER [dbo].[mytrigger] ON [dbo].[smslog] AFTER INSERT

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.