D
Dean
I have the following code in a db, we use it for vacation
tracking. I need it to count the half days as well as the
whole days. It previously counted just the whole days. I
have changed this part "AND tblVacation.NO_DAYS <> .5"
to what i thought would count all days. If i change
the .5 to 0, it counts the records not the values i have
different varitions with the operators <= >= and 1 and 5
nothing it either counts whole days (1) or the number of
records. Any ideas?
thanks
Dean
strSQLCountPeople = _
"SELECT tblVacation.SENIORITY_NUMBER, " & _
" tblVacation.REQUEST_DATE, " & _
" tblEmployeePasswords.SHIFT " & _
"FROM tblEmployeePasswords INNER JOIN tblVacation
ON " & _
" tblEmployeePasswords.SENIORITY_NUMBER = "
& _
" tblVacation.SENIORITY_NUMBER " & _
"WHERE tblVacation.REQUEST_DATE = " & "#" &
dtmRequestDate & "# " & _
" AND tblEmployeePasswords.SHIFT = " & conQuote &
strShift & conQuote & _
" AND tblVacation.NO_DAYS <> .5 " & _
" AND tblEmployeePasswords.DEPT NOT IN (" &
conQuote & "04" & conQuote & "," & _
")"
tracking. I need it to count the half days as well as the
whole days. It previously counted just the whole days. I
have changed this part "AND tblVacation.NO_DAYS <> .5"
to what i thought would count all days. If i change
the .5 to 0, it counts the records not the values i have
different varitions with the operators <= >= and 1 and 5
nothing it either counts whole days (1) or the number of
records. Any ideas?
thanks
Dean
strSQLCountPeople = _
"SELECT tblVacation.SENIORITY_NUMBER, " & _
" tblVacation.REQUEST_DATE, " & _
" tblEmployeePasswords.SHIFT " & _
"FROM tblEmployeePasswords INNER JOIN tblVacation
ON " & _
" tblEmployeePasswords.SENIORITY_NUMBER = "
& _
" tblVacation.SENIORITY_NUMBER " & _
"WHERE tblVacation.REQUEST_DATE = " & "#" &
dtmRequestDate & "# " & _
" AND tblEmployeePasswords.SHIFT = " & conQuote &
strShift & conQuote & _
" AND tblVacation.NO_DAYS <> .5 " & _
" AND tblEmployeePasswords.DEPT NOT IN (" &
conQuote & "04" & conQuote & "," & _
")"