viper5646
Active member
Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) _
Handles DataGridView1.CellClick
If DataGridView1.DataMember = "DEsign_tbl" Then
DataGridView1.DataMember = "Customer_tbl"
Exit Sub
End If
If DataGridView1.DataMember = "Customer_tbl" Then
DataGridView1.DataMember = "DEsign_tbl"
End If
End Sub
Hi.
I have a Customers_tbl and a DEsign_tbl from ms Access 2007.
When I click on the Customer cell I would like to display the records
from DEsign_tbl that represent that Customer. Instead of the intire DEsign_tbl, like the coed that I displayed shows.
Thank you
John
Handles DataGridView1.CellClick
If DataGridView1.DataMember = "DEsign_tbl" Then
DataGridView1.DataMember = "Customer_tbl"
Exit Sub
End If
If DataGridView1.DataMember = "Customer_tbl" Then
DataGridView1.DataMember = "DEsign_tbl"
End If
End Sub
Hi.
I have a Customers_tbl and a DEsign_tbl from ms Access 2007.
When I click on the Customer cell I would like to display the records
from DEsign_tbl that represent that Customer. Instead of the intire DEsign_tbl, like the coed that I displayed shows.
Thank you
John