i've got two table
ServicesGroups ( id, name ) and
Services ( id, group_id, name )
tables linked on ServicesGroups. id=Services.gro up_id
at first select field i list ServicesGroups table,
so when user select group i need to reload Services select field, and show only services wich linked to selected group ( Where Services.group_ id=ServicesGrou ps.id )
i realize it so
but making Servicefield.Re query we reload all Services selects at form, but we need reload only Services select at current row of the parent table
ServicesGroups ( id, name ) and
Services ( id, group_id, name )
tables linked on ServicesGroups. id=Services.gro up_id
at first select field i list ServicesGroups table,
so when user select group i need to reload Services select field, and show only services wich linked to selected group ( Where Services.group_ id=ServicesGrou ps.id )
i realize it so
Code:
sql_str = "SELECT Services.name, Services.id " & _ "FROM Services " & _ "WHERE Services.group_id=" & ServiceGroup.Value Servicefield.RowSource Servicefield.Requery
Comment