Results 1 to 4 of 4

Thread: Loop error

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    9

    Loop error

    Code:
    For j = lvOrderList.ListItems.Count To 1 Step -1
    
            If rsProducts!Product_ID = lvOrderList.ListItems(j).Text Then
                Do
                    orderQnty = lvOrderList.ListItems(j).ListSubItems(2).Text
                    rsProducts.Edit
                    rsProducts!Units_InStock = rsProducts!Units_InStock + orderQnty
                    rsProducts.Update
    
                Loop Until rsProducts.EOF
    
            Next j
    next without for error
    Last edited by si_the_geek; Feb 23rd, 2011 at 10:41 AM. Reason: added Code tags

Tags for this Thread

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