Calling to/from shared subs in vb.net

Joined
Oct 25, 2005
Messages
2
Reaction score
0
Having similar issues to another post I saw on here. So when I got to this sub from a diff user control...

Public Shared Sub UpdateNVRADatGridOnAddEdit()
Dim myVar As New Search
myVar.UpdateNVRADataGrid()
End Sub

It never gets to this one....

Public Sub UpdateNVRADataGrid()
dgNVRA.DataSource = BL.NVRA.Statistics.GetAll _
(Me.cboParishes.SelectedParish, Me.cboFormCodes.SelectedFormCode)
Dim DataCheck As DataTable = BL.NVRA.Statistics.GetAll(Me.cboParishes.SelectedP arish, Me.cboFormCodes.SelectedFormCode)
If Not DataCheck.Rows.Count > 0 Then
lblNoRecord.Visible = True
ElseIf DataCheck.Rows.Count = 1 Then
PopulateDetailPanel()
lblNoRecord.Visible = False
Else : lblNoRecord.Visible = False
End If
End Sub

Those two are on the same control btw. Any suggestions?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top