Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to solve the INSERT table error below

How to solve the INSERT table error below

Scheduled Pinned Locked Moved Visual Basic
helptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    angelagke
    wrote on last edited by
    #1

    System.Data.OleDb.OleDbException: The statement has been terminated. Cannot insert the value NULL into column 'bcId', table 'ForumVB.dbo.forumTopics'; column does not allow nulls. INSERT fails. at System.Data.OleDb.OleDbDataReader.NextResults(IMultipleResults imultipleResults, OleDbConnection connection, OleDbCommand command) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at dotForumTopicAdd.addTopic.submitter_update(Object sender, CommandEventArgs e):sigh:

    B 1 Reply Last reply
    0
    • A angelagke

      System.Data.OleDb.OleDbException: The statement has been terminated. Cannot insert the value NULL into column 'bcId', table 'ForumVB.dbo.forumTopics'; column does not allow nulls. INSERT fails. at System.Data.OleDb.OleDbDataReader.NextResults(IMultipleResults imultipleResults, OleDbConnection connection, OleDbCommand command) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at dotForumTopicAdd.addTopic.submitter_update(Object sender, CommandEventArgs e):sigh:

      B Offline
      B Offline
      Briga
      wrote on last edited by
      #2

      It seems that the message tells the story. Or you set a non null value for bcId or you make it nullable in the DB.

      A 1 Reply Last reply
      0
      • B Briga

        It seems that the message tells the story. Or you set a non null value for bcId or you make it nullable in the DB.

        A Offline
        A Offline
        angelagke
        wrote on last edited by
        #3

        yup, i set non null value for bcId, but i forget 2 set it automatic generate number because i use bcId is primary key and is not get the value from user keyin.... So after i set bcId to auto generate number in database then my erorr was solve already :-O anyway thanks for reply n all d best 2 u :rose: -- modified at 6:06 Tuesday 17th January, 2006

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups