A
Anne
I have an options group:
Private Sub JobSelectJobOption_AfterUpdate()
Select Case JobSelectJobOption
Case 1
Me.JobSelect.RowSource = "Select * from cbojobcontractor where [Archive]
=False "
Case 2
Me.JobSelect.RowSource = "Select * from cbojobcontractor where [Archive]
=true "
Case 3
Me.JobSelect.RowSource = "Select * from cbojobcontractor"
Me.requery
End Select
End Sub
It works, however, whenever I open the form, case 3 is selected which should
be all jobs, but it does not list all jobs, it lists the active jobs.
It shows all job, but displays only the active jobs. I have to check another
button and then again all jobs to actually display all jobs.
In any case, it should display which ever button is checked.
Private Sub JobSelectJobOption_AfterUpdate()
Select Case JobSelectJobOption
Case 1
Me.JobSelect.RowSource = "Select * from cbojobcontractor where [Archive]
=False "
Case 2
Me.JobSelect.RowSource = "Select * from cbojobcontractor where [Archive]
=true "
Case 3
Me.JobSelect.RowSource = "Select * from cbojobcontractor"
Me.requery
End Select
End Sub
It works, however, whenever I open the form, case 3 is selected which should
be all jobs, but it does not list all jobs, it lists the active jobs.
It shows all job, but displays only the active jobs. I have to check another
button and then again all jobs to actually display all jobs.
In any case, it should display which ever button is checked.