Deductions & credits

Do both our incomes need to come from W2 sources in order to qualify for the child and dependent care credit?  One of us has income from self-employment and 1099, and the other one from a W2.   It states that we do not qualify for the credit, so I'm curious if this is the reason?