Results 1 to 6 of 6

Thread: ProgressBar help needed

Threaded View

  1. #1

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    ProgressBar help needed

    Hi Guys,

    I need to show a progressbar while the following sub is being executed:

    The progressbar will be on another form and it should show while the sub is being executed and once the sub has executed, it must dissappear.

    I tried doing it but the progressbar wasn't showing any progress. I've deleted what I tried.

    Could someone please modify the following code to include the progressbar.

    Code:
    Private Sub cboSite_Click()
    
    On Error GoTo errh
    
    cmdPrintSiteInfo.Enabled = False
    SiteNum = cboSite.ItemData(cboSite.ListIndex)
    
    Call LoadSite(SiteNum)
    LoadConsumable (SiteNum)
    Call LoadSiteInfo("({Command.SiteId} = " & SiteNum & ")")
    
    cboNotes.Enabled = True
    
    Call PopulateNoteCombos(SiteNum)
    
    
    'Unload Form3
    NewRecNote = False
    NewNote = False
    cmdPrintSiteInfo.Enabled = True
    
    Exit Sub
        
    errh:
        errmsg "The following Exception occured : " & ERR.Description & ",  " & ERR.Source & "", "Exception occured in frmItemManager.cboSite_Click()"
    
    
    End Sub
    Last edited by Nitesh; Dec 4th, 2007 at 09:21 AM. Reason: removing error

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