Results 1 to 3 of 3

Thread: Access no error is string length > 255

  1. #1
    Join Date
    Jan 2007
    Location
    Chennai, Tamil Nadu, India
    Posts
    31
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Access no error is string length > 255

    i have a database and in that a field name desc for storing lengthy text...
    actually the text length in access is 255 but i tried to store more that 255
    i didnt get any error at the same time the data didnt get stored...


    str="insert into table1 values('sa',' text more that 255 letterx')
    on error resume next
    cons.Execute(str)

    if err.Number<>0 then
    response.write err.description
    response.end
    end if

    the above code didnt show any error and it didnt get saved...

    how to know whether an operation is successful in access or asp...

    ----

  2. #2
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Remove the line "On error move next" from the code. This line causes the script to run even if the error is reported. Removing it should report the error on screen.

  3. #3
    Join Date
    Jan 2007
    Location
    Chennai, Tamil Nadu, India
    Posts
    31
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default i got it

    the datatype can hold a maximum of 255... so got to go for memo type...

Bookmarks

Posting Permissions

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