Thanks Rob that helped me to understand, but im still gettin' an error when i try to run... (so i must done something worng i guess)
This is what i done so far:
1 - On my cities BO, called (CidadesBO)
Public Sub FillCityByState(ByVal StatePrimaryKey As Integer)
Me.FillDataTable("SELECT * FROM tb_cidade WHERE cidade_estado_id = " & EstadosBO.EstadosBOFieldNames.estado_id_cod.ToString())
'ESTADOSBO is the BO of states
End Sub
2 - On the Clubs form, called (frmCadClubes)
2.1 - City Combo
Private Sub cboCidade_ListPopulating(ByVal e As MicroFour.StrataFrame.UI.ListPopulatingEventArgs) Handles cboCidade.ListPopulating
e.Parameters(0).Value = EstadosBO.EstadosBOFieldNames.estado_id_cod
'ESTADOSBO is the BO of states
End Sub
2.2 - State Combo
Private Sub cboEstado_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboEstado.SelectedValueChanged
cboCidade.Requery()
End Sub
3 - I set the the Initialization as you told me.
But when i run, the code stops on this "requery line" and gives this message:
{"Invalid column name 'estado_id_cod'."} but this is the primary key of the table states, and that repeats on the field called "cidade_estado_id" on the cities table, so this is the link.
On the pic Im sending a diagram maybe give some clue.
Please be patience