hi all again, i need some help with this code, which fills some comboboxes depending on the id, For example if in the Country combobox the Country"Greece" ,which has the id 1, then in the State combobox, all the states of Greece are shown, and show on..
CODE:
Imports
Public
da.Fill(ds,
cmbCountry.Items.Add(dr.Item(
conn.Close()
ds.Dispose()
da.Dispose()
cmbState.Text =
cmbState.Items.Clear()
cmbState.Items.Add(dr.Item(
cmbMunicipality.Text =
cmbMunicipality.Items.Clear()
cmbArea.DataSource = ds.Tables(
cmbArea.DisplayMember =
con =
con.Open()
command.Connection = con
command.Transaction = Trans
command.CommandText =
da.InsertCommand = command
da.InsertCommand.ExecuteNonQuery()
Trans.Commit()
fname =
lname =
MessageBox.Show(
Trans.Rollback()
MessageBox.Show(ex.Message)
con.Close()
command.Dispose()
Trans.Dispose()
Teacher()
Country_ComboFill()
Area_ComboFill()
End
THIS IS THE ERROR :
Error 1 Argument not specified for parameter 'CountryID' of 'Public Sub State_ComboFill(CountryID As Integer)'. C:\Documents and Settings\Administrator\Desktop\Projects\School\School\School\Teachers.vb 163 9 School