G
Guest
I have cascading combo boxes where the virus chosen limits the test combo
box. I would like to also limit the test drop-down list by an additional
parameter; I would like only the RRT-PCR tests to come up, excluding the
cELISA and PCR tests.
In other words,
The code below results in the following tests being selected, when the virus
AIV is chosen:
Mtx RRT-PCR
H5 RRT-PCR
H7 RRT-PCR
PCR
cELISA
But I only want the first 3 to show up. How do I do this? The simpler the
solution, the better for me.
Private Sub cboVirus_AfterUpdate()
'Sets up test combo box as being dependent on virus combo box'
Me!cboTest.RowSource = "SELECT lstTests.Test FROM lstTests WHERE
lstTests.Virus = cboVirus.value"
'Clears previous entry'
Me![cboTest] = " "
Me![cboTest].Requery
End Sub
Thanks, AG
box. I would like to also limit the test drop-down list by an additional
parameter; I would like only the RRT-PCR tests to come up, excluding the
cELISA and PCR tests.
In other words,
The code below results in the following tests being selected, when the virus
AIV is chosen:
Mtx RRT-PCR
H5 RRT-PCR
H7 RRT-PCR
PCR
cELISA
But I only want the first 3 to show up. How do I do this? The simpler the
solution, the better for me.
Private Sub cboVirus_AfterUpdate()
'Sets up test combo box as being dependent on virus combo box'
Me!cboTest.RowSource = "SELECT lstTests.Test FROM lstTests WHERE
lstTests.Virus = cboVirus.value"
'Clears previous entry'
Me![cboTest] = " "
Me![cboTest].Requery
End Sub
Thanks, AG