Results 1 to 3 of 3

Thread: Update the no after deleted it

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    81

    Red face Update the no after deleted it

    Hi all,

    Please help me in the coding. i m a beginner in VB6. I would like to update a number ( which keep the int in an order like : 1, 2, 3, 4,.....) when one of the record is deleted.

    For example, a custID can have a few instalment no, I_no ( it keeps the int no as 1, 2, 3, 4, 5). if I_no (3) is deleted, i want the I_no (4) become I_no(3) and I_no(5) become I_no(4) ... it means I_no will become (1, 2, 3, 4).

    Please help.

    Thanks in advance,
    viv

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Update the no after deleted it

    What are you storing the data in?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    81

    Re: Update the no after deleted it

    Quote Originally Posted by [LGS]Static
    What are you storing the data in?

    the I_no is used to store the number( 1, 2, 3, 4,.......). If one of these I_no is deleted, i want the next number will replace the deleted number and so on. It means I_no always keep the number in sequent.

    Thanks.

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