A
ajw
I have a subform that has several combo boxes on it. The
main form is frmLocations, the sub form is in control
subControl named subfrmCommLines. I want to have one of
the combo boxes datasource to be controlled by two of the
other combo boxes on the subform. The combo box is filled
with whatever the first record consists of and does not
change as I move through the records in the subform. I
have used this method on the main form without problems.
Any Ideas?
Here is the selection code I have for the combo box.
"SELECT [tblCommLines].[LineNumber] FROM [tblCommLines]
WHERE ( ([tblCommLines].[CampusID]=[Forms]![frmLocations]!
[cboCampusID]) AND ([tblCommLines].[DFID]=[Forms]!
[frmLocations]![subControl].Form![cboDFName]) AND
([tblCommLines].[Type]=[Forms]![frmLocations]!
[subControl].Form![cboType]) ) ORDER BY [tblCommLines].
[LineNumber];"
TIA
AJW
main form is frmLocations, the sub form is in control
subControl named subfrmCommLines. I want to have one of
the combo boxes datasource to be controlled by two of the
other combo boxes on the subform. The combo box is filled
with whatever the first record consists of and does not
change as I move through the records in the subform. I
have used this method on the main form without problems.
Any Ideas?
Here is the selection code I have for the combo box.
"SELECT [tblCommLines].[LineNumber] FROM [tblCommLines]
WHERE ( ([tblCommLines].[CampusID]=[Forms]![frmLocations]!
[cboCampusID]) AND ([tblCommLines].[DFID]=[Forms]!
[frmLocations]![subControl].Form![cboDFName]) AND
([tblCommLines].[Type]=[Forms]![frmLocations]!
[subControl].Form![cboType]) ) ORDER BY [tblCommLines].
[LineNumber];"
TIA
AJW