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 7685081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:10:25+00:00 2026-05-31T19:10:25+00:00

I am writing the program in C# to insert information into an Access database.

  • 0

I am writing the program in C# to insert information into an Access database. So, using the following C# statement, and the proceeding form, I need to know what data types my Access fields have to be. (ie; {0}=int, {1}=nchar)
I think, until I get it figured out,

    ![string vsql = string.Format("insert into Log values " +
        "('{0}','{1}','{2}','{3}','{4}','{5}','{6}')",
        comboBox1.Text,                 //(type?)
        comboBox2.Text,                 //(type?)   
        int.Parse(textBox1.Text),       //I want this to be float (possible?)
        int.Parse(textBox1.Text),       //I want this to be float (possible?)
        textBox2.Text,                  //(type?)
        textBox3.Text,                  //(type?)
        addRemove);                     //(type?)

enter image description here

  • 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-31T19:10:26+00:00Added an answer on May 31, 2026 at 7:10 pm
    string vsql = string.Format("insert into Log values " +
            "('{0}','{1}',{2},{3},'{4}',#{5}#,'{6}')",
            comboBox1.Text,           //string field
            comboBox2.Text,           //string field
            int.Parse(textBox1.Text), //don't wrap this in quotes if you want it as a float
            int.Parse(textBox1.Text), //same as above
            textBox2.Text,            //this is a DateTime field - you probably need to wrap with # marks.
            textBox3.Text,            //string field
            addRemove                 //bool field
            );     
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to insert 800000 records into an MS Access table. I am using
I'm writing a program (for Mac OS X, using Objective-C) and I need to
I'm writing a program in C# that needs to insert data in multiple tables.
I am writing a simple program to insert rows into a table.But when i
I'm writing a program using jdbc that will be an interface to database(smth like
My little test-program is writing a serialized object into a mysql database, then retrieving
I'm writing a program that requires input in the form of a document, it
I am writing a program to extract data from a bunch of text files
I have an oracle DB where a program is writing into two columns when
Writing a program in which I need to split strings from a struct linked

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.