Hi,

My first post, new to VB and to the forum.

I am working on a old vb application developed by someone else but I got to this error on a class module while trying to undertand and get a definition for this.

Cannot jump to 'pbDataImport' because is hidden.

Code:
DoEvents
    frmImport.pbDataImport.Value = 1000
Why is this? and what would the 'pbDataImport' used for. is set to different values at in different places.
Code:
Private Sub Form_Load()
On Error GoTo Err_Form_Load
Dim rcdReportDates As New ADODB.Recordset

    Call ClearMessages
    optNew.Value = True
    optRepeat.Value = Not optNew.Value
    pbDataImport.Min = 0
    pbDataImport.Max = 1000
    pbDataImport.Value = 0
    
    frmImport.Left = 50
    frmImport.Top = 50
    
    'Need to populate the Report Date DataCombo with values
    Connect
    Set rcdReportDates = svr_Query(cnCDior, "spReportDateGet")
    SwitchToClient rcdReportDates
    fPopulateDataCombo rcdReportDates, Me.cbointReportDateURN, "intReportDateURN", "txtReportDate"
    Disconnect
    
Exit_Form_Load:
    Exit Sub
    
Err_Form_Load:
    Resume Exit_Form_Load
End Sub
thanks
luta