Results 1 to 12 of 12

Thread: Adding a progress bar while the flexgrid is populating

Threaded View

  1. #4

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    43

    Question Re: Adding a progress bar while the flexgrid is populating

    This code:

    Code:
    ProgressBar1.Min = 0
    ProgressBar1.Max = 100
    
    'Your Code
    '
    '
    
    Do While Not rsmain.EOF()
        'Your Code
        ' 
        '
        ProgressBar1.Value = int(rsmain.AbsolutePosition * 100 / rsmain.RecordCount)
    Loop
    ...worked perfectly for what I wanted but I keep getting errors (Invalid property value) when the recordset is complete? When the last record is populated into the grid the error handler fires? The debugger comes back on the:

    Code:
    ProgressBar1.Value = int(rsmain.AbsolutePosition * 100 / rsmain.RecordCount)
    Last edited by Heprox; May 4th, 2005 at 02:04 PM.

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