Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Location
    Maryland
    Posts
    152

    Unanswered: Display the current record

    Hi,

    I am trying to show the record being processed during the loop execution in a table. But it doen't show the current record being processed, it just showed the last record and during the loop it shows the 1 only. code looks like this:

    do while not rs.eof

    mytextbox.text = rs("field")
    rs.movenext
    loop

    any help will be appreciated.
    mr_roomi

  2. #2
    Join Date
    Mar 2004
    Location
    Maryland
    Posts
    152

    idea

    any idea abt that?
    mr_roomi

  3. #3
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,418
    Provided Answers: 7
    Quote Originally Posted by Mr_roomi
    Hi,

    I am trying to show the record being processed during the loop execution in a table. But it doen't show the current record being processed, it just showed the last record and during the loop it shows the 1 only. code looks like this:

    do while not rs.eof

    mytextbox.text = rs("field")
    rs.movenext
    loop

    any help will be appreciated.

    mytextbox.text will only show the last record cause
    its been over wrriten each pass of the record set

    try
    do while not rs.eof

    mytextbox.text = rs("field")
    msgbox("I'm Working on " & rs("field"))
    rs.movenext
    loop
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  4. #4
    Join Date
    Mar 2004
    Location
    Maryland
    Posts
    152

    try

    Hi,

    I tried that code, but it still doesn't show number increament during the process...when process finishes it shows just last number.
    mr_roomi

Posting Permissions

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