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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:43:42+00:00 2026-06-07T23:43:42+00:00

For some reason when I try to add a 3rd columns in my insert

  • 0

For some reason when I try to add a 3rd columns in my insert command I get the “Syntax error in INSERT INTO statement.” error. However when I only have 2 values to insert into 2 columns it works just fine. I’m a bit confused as to why that may be. (tip: I may not be using the correct connect string, the file type is an Access 2000 Database)

    Dim Cmd As OleDbCommand
    Dim SQL As String
    Dim objCmd As New OleDbCommand
    Dim Con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Files\keysDB.mdb")
    SQL = "INSERT INTO KeyBuffer(keypad, SID, Time) VALUES('1', '1337', '" & DateTime.Now.ToString & "')"
    Cmd = New OleDbCommand(SQL, Con)
    Con.Open()
    objCmd = New OleDbCommand(SQL, Con)
    objCmd.ExecuteNonQuery()
    Con.Close()
  • 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-07T23:43:44+00:00Added an answer on June 7, 2026 at 11:43 pm

    The field name you are using for Time is likely a keyword. Try placing brackets around it:

    "INSERT INTO KeyBuffer(keypad, SID, [Time])...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason if I try to get the actual size of mystruct I
For some reason our developers can only add projects that they've created to Team
When I try to add a user this is the error I get: ErrorException
For some reason i keep getting the following error when i try to set
For some reason when I try to run b2 with toolset=gcc I get the
for some reason when I try to call CocoaAsyncSocket's onSocket:didReadData:withTag method, it's failing and
I'm getting undefined for some reason when I try to return the html via
This is my first applet project and for some reason when I try to
I'm hoping you can give me some pointers... For some reason when I try
For some reason every time I try to count the number of rows in

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.