If you have more than one subform, you need to use the correct syntax.
Check this out as it might help you grasp that better.
http://www.btabdevelopment.com/main...rhowtoreferencesubforms/tabid/76/Default.aspx
Your current reference needs to be:
Forms!frmPKProjects.sfrmProjectsTasks.FORM.sfrmProjectsTasksResponsibles.FORM.cbResponsible
A couple of things:
1. When you are dealing with subforms, you are actually dealing with two
parts - the subform CONTAINER (that which houses the subform on the main
form) and the subform itself.
2. The subform and subform container can be named the same, but are not
necessarily so. You need to check before writing the code. If they are the
same then it simplifies things but it doesn't really matter if it is, or
isn't, because you just have to refer to the container.
3. When you are doing things, like setting the recordsource on the subform,
you are not really requerying the container, as it doesn't have a requery
method, but the subform itself does. So, when you are referring to a
property, or method, on the actual subform (not the container), you need to
have the subform container name and then .Form. between the container name
and the method, or property, so Access knows you want to refer to the form's
method or property and not the container's method or property.
--
Bob Larson
Access MVP
Access World Forums Administrator
Utter Access VIP
Free Access Resources at
http://www.btabdevelopment.com