I'm new to VB.NET Basic Edition. I've done this in Access but not sure how to begin in VB. I have a datagrid tied to a table. I want to use radio buttons to display the records I want in the grid, such as "all", "sold", etc which is identified by Status_Code in table.
In Access I created queries for each option, then on the AfterUpdate of the option group, I did a Select Case like:
Private Sub option_View_Listings_AfterUpdate()
Dim qwyName As String
Dim subformName As String
Select Case option_View_Listings
Case 1
qwyName = "qwy_Listings_All"
Case 2
qwyName = "qwy_Listings_Sold"
End Select
Then:
Me.subform_Listings.Form.RecordSource = qwyName
I want to put code behind an event when the button is clicked:
Private Sub radioAll_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioAll.CheckedChanged
End Sub
How do I do this? Thanks for your input!
In Access I created queries for each option, then on the AfterUpdate of the option group, I did a Select Case like:
Private Sub option_View_Listings_AfterUpdate()
Dim qwyName As String
Dim subformName As String
Select Case option_View_Listings
Case 1
qwyName = "qwy_Listings_All"
Case 2
qwyName = "qwy_Listings_Sold"
End Select
Then:
Me.subform_Listings.Form.RecordSource = qwyName
I want to put code behind an event when the button is clicked:
Private Sub radioAll_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioAll.CheckedChanged
End Sub
How do I do this? Thanks for your input!