T
Theresa
Hi:
I have a form which contains a subform. On the subform I have a combo box,
cboRepl_Fixture, which looks up into the Replacement_Fixture_tbl. I have
another combo box in this same subform, cboLamp, that I would like to only
show the lamps available for that fixture.
I have the following code in the AfterUpdate Event of cboRepl_Fixture:
Private Sub cboRepl_Fixture_AfterUpdate()
Me.cboLamp.RowSource = "SELECT Lamp FROM" & _
" Replacement_Lamp_tbl WHERE Repl_Fixture_ID = " &
Me.cboRepl_Fixture & _
" ORDER BY Lamp"
Me.cboLamp = Me.cboLamp.ItemData(0)
End Sub
When I view the subform, cboLamp is empty.
Any suggestions would be appreciated.
I have a form which contains a subform. On the subform I have a combo box,
cboRepl_Fixture, which looks up into the Replacement_Fixture_tbl. I have
another combo box in this same subform, cboLamp, that I would like to only
show the lamps available for that fixture.
I have the following code in the AfterUpdate Event of cboRepl_Fixture:
Private Sub cboRepl_Fixture_AfterUpdate()
Me.cboLamp.RowSource = "SELECT Lamp FROM" & _
" Replacement_Lamp_tbl WHERE Repl_Fixture_ID = " &
Me.cboRepl_Fixture & _
" ORDER BY Lamp"
Me.cboLamp = Me.cboLamp.ItemData(0)
End Sub
When I view the subform, cboLamp is empty.
Any suggestions would be appreciated.