Results 1 to 6 of 6

Thread: ADO. Why will the .Update not stop invalid entry

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154
    I have an ADO control on my form bound to a field that allows 9 characters. After a user enters data in the box, I run the following code

    Form.ADODC1.Recordset.update


    Even though the user entered 10 digits, the update seemed to work. However, when I try and move to the next record, I get an error (Operation failed). It seems useless to run the .update if it is not really updating the record??????

    If I place the following code in the same box

    Form.ADODC1.Recordset.update
    Form.ADODC1.Recordset.movenext

    Then it errors.

    I can issue a movenext and then a moveprevious but I was wondering if there is a better way??????

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    the ADO data control still has its quirks....what happens when you only put 9 characters into that field?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154
    If I put 9 characters it seems to update it. I am having similiar problems with other issue related to this same issue. If I use the MoveNext and then MovePrevious, it works but I don't like the way it looks to the user.

  4. #4
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651
    would you be from donegal steve thomas??????????????????????
    Gilly

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154
    No. Sorry.


  6. #6
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    I suppose just put the maxlength of the textbox to 9, but that doesn't solve the ADO problem for you....sorry

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