Is there a way to debug the following statement:
If DCount("ID", "qryStaffActivityChk", "ActivityStartDate = Forms!frmStaffActivityDetails!ActivityStartDate AND StaffID = Forms!frmStaffActivityDetails!StaffID") > 0 Then
I did a msgbox(DCount(...)) and that works, but it only gives me a count of the previous statement.
What i want to see is actual values for ActivityStartDate in qryStaffActivityChk that are being checked.
Is there a way to do that somehow?
Thanks.
If DCount("ID", "qryStaffActivityChk", "ActivityStartDate = Forms!frmStaffActivityDetails!ActivityStartDate AND StaffID = Forms!frmStaffActivityDetails!StaffID") > 0 Then
I did a msgbox(DCount(...)) and that works, but it only gives me a count of the previous statement.
What i want to see is actual values for ActivityStartDate in qryStaffActivityChk that are being checked.
Is there a way to do that somehow?
Thanks.