P
Paul Doree
Hi,
I have a subform which has two comboboxes on it. Combobox 1 contains the
JobID, and combobox 2 contains all the addresses for jobs. After update of
combobox1, I need combobox 2 to be filtered to the addresses which belong to
the JobID in combobox 1.
After update of ComboBox 1 I am requerying Combobox 2. For the row source
for Combobox 2 I am using as criteria in the sql statement
forms!mainformname!subformname!controlname where controlname is JobID - the
name of ComboBox 1. This then shows all the addresses related to the Job
currently selected.
I've done this sort of thing before (on main forms, not sub forms) and had
no problems. This time, however, something strange is happening. When I
add a second record, or third etc. in the subform, the drop down list of
Combobox 2 ON ALL THE ROWS is always the address in the currently selected
row, and when I pick the address from Combobox 2 the address fileds in the
other rows then blank out!!
I've now been at this for nearly 2 hours and cannot see why. Can anyone
help?
Yours frustratingly
Paul
I have a subform which has two comboboxes on it. Combobox 1 contains the
JobID, and combobox 2 contains all the addresses for jobs. After update of
combobox1, I need combobox 2 to be filtered to the addresses which belong to
the JobID in combobox 1.
After update of ComboBox 1 I am requerying Combobox 2. For the row source
for Combobox 2 I am using as criteria in the sql statement
forms!mainformname!subformname!controlname where controlname is JobID - the
name of ComboBox 1. This then shows all the addresses related to the Job
currently selected.
I've done this sort of thing before (on main forms, not sub forms) and had
no problems. This time, however, something strange is happening. When I
add a second record, or third etc. in the subform, the drop down list of
Combobox 2 ON ALL THE ROWS is always the address in the currently selected
row, and when I pick the address from Combobox 2 the address fileds in the
other rows then blank out!!
I've now been at this for nearly 2 hours and cannot see why. Can anyone
help?
Yours frustratingly
Paul