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. Null values vb6 + access97 [modified]

Null values vb6 + access97 [modified]

Scheduled Pinned Locked Moved Visual Basic
helpquestion
8 Posts 6 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.
  • S Offline
    S Offline
    spruha369
    wrote on last edited by
    #1

    I m using vb6 and access 97 for a project i m entering data in the access but the problem is when i insert null values(Empty String) it give 'syntax error in insert into statement' when i enter all the value it doesnt give any error but sometimes it happens that i dont want to enter some values what can i do ?? pls help me... spruha

    modified on Monday, June 29, 2009 6:41 AM

    R S T P S 5 Replies Last reply
    0
    • S spruha369

      I m using vb6 and access 97 for a project i m entering data in the access but the problem is when i insert null values(Empty String) it give 'syntax error in insert into statement' when i enter all the value it doesnt give any error but sometimes it happens that i dont want to enter some values what can i do ?? pls help me... spruha

      modified on Monday, June 29, 2009 6:41 AM

      R Offline
      R Offline
      Rajesh Anuhya
      wrote on last edited by
      #2

      Check your Database field which you R Trying to insert null value is not a required filed in that table, and it's not a *NOT NULL* Field.

      Rajesh B --> A Poor Workman Blames His Tools <--

      S 1 Reply Last reply
      0
      • R Rajesh Anuhya

        Check your Database field which you R Trying to insert null value is not a required filed in that table, and it's not a *NOT NULL* Field.

        Rajesh B --> A Poor Workman Blames His Tools <--

        S Offline
        S Offline
        spruha369
        wrote on last edited by
        #3

        i check access for any option so that i can it will accept null values(Empty String) i can't see any option for tat... spruha

        modified on Monday, June 29, 2009 6:40 AM

        N 1 Reply Last reply
        0
        • S spruha369

          I m using vb6 and access 97 for a project i m entering data in the access but the problem is when i insert null values(Empty String) it give 'syntax error in insert into statement' when i enter all the value it doesnt give any error but sometimes it happens that i dont want to enter some values what can i do ?? pls help me... spruha

          modified on Monday, June 29, 2009 6:41 AM

          S Offline
          S Offline
          Steven J Jowett
          wrote on last edited by
          #4

          VB6 and Access 97? Why are you developing in dead software/languages?

          Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

          1 Reply Last reply
          0
          • S spruha369

            I m using vb6 and access 97 for a project i m entering data in the access but the problem is when i insert null values(Empty String) it give 'syntax error in insert into statement' when i enter all the value it doesnt give any error but sometimes it happens that i dont want to enter some values what can i do ?? pls help me... spruha

            modified on Monday, June 29, 2009 6:41 AM

            T Offline
            T Offline
            Thomas Krojer
            wrote on last edited by
            #5

            If the field is able to store NULL values, then you should also use the NULL in your insert statement: insert into table (field, field, ...) values ('value', null, ...

            1 Reply Last reply
            0
            • S spruha369

              I m using vb6 and access 97 for a project i m entering data in the access but the problem is when i insert null values(Empty String) it give 'syntax error in insert into statement' when i enter all the value it doesnt give any error but sometimes it happens that i dont want to enter some values what can i do ?? pls help me... spruha

              modified on Monday, June 29, 2009 6:41 AM

              P Offline
              P Offline
              paas
              wrote on last edited by
              #6

              In the design of the Access database table in question, ensure that the field is set to 'Allow Zero Length' and that it is not 'Required'.

              1 Reply Last reply
              0
              • S spruha369

                I m using vb6 and access 97 for a project i m entering data in the access but the problem is when i insert null values(Empty String) it give 'syntax error in insert into statement' when i enter all the value it doesnt give any error but sometimes it happens that i dont want to enter some values what can i do ?? pls help me... spruha

                modified on Monday, June 29, 2009 6:41 AM

                S Offline
                S Offline
                spruha369
                wrote on last edited by
                #7

                RESOLVED

                purvas

                1 Reply Last reply
                0
                • S spruha369

                  i check access for any option so that i can it will accept null values(Empty String) i can't see any option for tat... spruha

                  modified on Monday, June 29, 2009 6:40 AM

                  N Offline
                  N Offline
                  Nagy Vilmos
                  wrote on last edited by
                  #8

                  Don't think Access'97 supports null strings.


                  Panic, Chaos, Destruction. My work here is done.

                  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