G
Guest
i had another post, but only one answer , from John Vinson, and if he reads
this post, i hope that the information that i`ll put here will be of any help
to understand what i`m trying to say..
i`m rather new to access and vba, so please indulge me.
I`ll try to be a little more specific.
I have several departaments, in which diferent people have diferent jobs.
the first combo box is the selection of the departament.
the second one selects the job, and the third one, are the employees.
I use tables to store the data.
what i want to do, is something like this:
1st -> 2nd -> 3rd or
1st -> 3rd.
I`ll explain.
the first combo box gives us the jobs, and the jobs gives us the people.
But, in some cases i don`t need to select a job, so, what i want to do is,
that if I don`t select a job, in the third combo box i would have all the
people in the departament selected in the first combo.
The problem is, that i can make the selection, in VBA, but i don`t know how
to do it for 2 critereas.
the first case: 1st -> 2nd -> 3rd, i did it, but i don`t know how to do this
thing: if a don`t select a job, i want all the people in the departament.
the vba code for this selection is:
Private Sub First_combo_AfterUpdate()
Me![Third_combo].Requery
End Sub
As i said, i`m a newbie..
this post, i hope that the information that i`ll put here will be of any help
to understand what i`m trying to say..
i`m rather new to access and vba, so please indulge me.
I`ll try to be a little more specific.
I have several departaments, in which diferent people have diferent jobs.
the first combo box is the selection of the departament.
the second one selects the job, and the third one, are the employees.
I use tables to store the data.
what i want to do, is something like this:
1st -> 2nd -> 3rd or
1st -> 3rd.
I`ll explain.
the first combo box gives us the jobs, and the jobs gives us the people.
But, in some cases i don`t need to select a job, so, what i want to do is,
that if I don`t select a job, in the third combo box i would have all the
people in the departament selected in the first combo.
The problem is, that i can make the selection, in VBA, but i don`t know how
to do it for 2 critereas.
the first case: 1st -> 2nd -> 3rd, i did it, but i don`t know how to do this
thing: if a don`t select a job, i want all the people in the departament.
the vba code for this selection is:
Private Sub First_combo_AfterUpdate()
Me![Third_combo].Requery
End Sub
As i said, i`m a newbie..