Quote:
quote:Originally posted by BryanBrassell
My purpose is to have the second box (FAFA5) popluated based on the choice in the first box (FAFA4), and so on.
|
Bryan,
First, don't do this on a continuous form. That will eliminate the "all or nothing" problem you're having. Use a single form that you can scroll record-by-record with using record selectors.
As for the comboboxes changing their rowsources based on the selection of other comboboxes, that's not too hard once you know what SQL language to write. Suppose, for example, you have Me.cboChoice1 and Me.cboChoice2. You would reset Me.cboChoice2's rowsource on Me.cboChoice1's AfterUpdate event:
Code:
Me.cboChoice2.Rowsource = {some SQL statement based on Me.cboChoice1}
Me.cboChoice2.Requery
What exactly to use for the SQL statement depends on Choice1's relationship with Choice2.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division