Results 1 to 8 of 8

Thread: Insert in Table Access without Null

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Question Insert in Table Access without Null

    Hi

    How can do Insert in Access Table, without Null,

    How can I to remove null before insert in Access Table


  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Insert in Table Access without Null

    Depends on the datat type of the field your inserting a value to. Doesn't the table have its default value property set? You won't have to worry about nulls (eg. skipped fields) in the insert statement then.

  3. #3

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: Insert in Table Access without Null

    Hi

    The fields are text value and data field , Whe I trying insert in table return me error


    tks

  4. #4
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Insert in Table Access without Null

    What is the error? How is thge datafield defined and on what database system?
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  5. #5
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Insert in Table Access without Null

    What's your erroneous SQL query and what's the error message?

  6. #6

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: Insert in Table Access without Null

    in DataBase is Text format

    in VB is textbox


    the error is

    Field 'TB01.TB01_FONE3' cannot be a zero-length string

  7. #7
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Insert in Table Access without Null

    If you need to accept zero length strings "" for blank entries, then you have to change the property of the field in the database.

    Otherwise you'll have to resort to changing the string to " " if its "", in the text box's validate event

  8. #8

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    [RESOLVED] Insert in Table Access without Null

    Thank You for all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width