In a module, I'm trying to count 1/2 Sick Days and Sick Days(which would be a full day). The below statement will count Sick Days in the table. How do I change to count 1/2 sickdays as 1/2 and sick days as 1. Example in the table I have:
tblInput Table InputText field :
Sick Day
1/2 Sick Day
"I want to output 1 1/2 sick days"
strSQL = "SELECT Count(InputID) AS TotDays FROM tblInput "
strSQL = strSQL & "WHERE ((Month([InputDate])=" & CInt(gstrMonth) & "
AND ((tblInput.UserID)=" & glngUserID & "
AND ((tblInput.InputText) Like '*Sick Day*'));"
Set rs = db.OpenRecordset(strSQL, dbOpenSnapshot)
frm!txtHolMo = rs!TotDays
rs.Close
tblInput Table InputText field :
Sick Day
1/2 Sick Day
"I want to output 1 1/2 sick days"
strSQL = "SELECT Count(InputID) AS TotDays FROM tblInput "
strSQL = strSQL & "WHERE ((Month([InputDate])=" & CInt(gstrMonth) & "
Set rs = db.OpenRecordset(strSQL, dbOpenSnapshot)
frm!txtHolMo = rs!TotDays
rs.Close