Hello,
please help me on refrase this working ok sql from my form's listbox to same form's textbox value
(because the need of conditional
formating and more)
Count of ylikoID is needed
So far trying my textbox gives 1 as value where should be more
please help me on refrase this working ok sql from my form's listbox to same form's textbox value
(because the need of conditional
formating and more)
Code:
SELECT Count(hreomenoylikotbl.ylikoID) AS CountOfylikoID
FROM ylikatbl INNER JOIN hreomenoylikotbl ON ylikatbl.ylikoID = hreomenoylikotbl.ylikoID
WHERE (((IsNull([ypallilosID]))=False))
GROUP BY ylikatbl.eidosylikouID
HAVING (((ylikatbl.eidosylikouID)=[Forms]![ylikamainfrm]![eidosylikouID]));
Count of ylikoID is needed
So far trying my textbox gives 1 as value where should be more
Code:
=DCount("[ylikoID]";"[hreomenoylikotbl]";"[ypallilosID] Is Not Null And [ylikoID]= " & DLookUp("[ylikoID]";"[ylikatbl]";"[eidosylikouID]= " & [Forms]![ylikamainfrm]![eidosylikouID]))