venu_resoju
Registered User.
- Local time
- Tomorrow, 04:20
- Joined
- Dec 29, 2010
- Messages
- 129
I have a form and its contain a "text box" for counting of records based on combo box of "cboEmpID". I am using this code in control source of "text box"
= DCount("[AttendanceStatus]", "Attendance", "EmpID ='" & cboEmpID.Text & "' AND AttendanceStatus='" & "Present" & "'")
and it is working fine.
But I want to modify this code to count records based on another 2 combo boxes which are "AtnMonth" and "AtnYear"
"cboEmpID" = represents EmpID's
"AtnMonth"= represents "AttendanceMonth" from "Attendance" Table
"AtnYear"= represents "AttendanceYear" from "Attendance" Table
I strucked here
Please anybody help me.Thanks in advance
= DCount("[AttendanceStatus]", "Attendance", "EmpID ='" & cboEmpID.Text & "' AND AttendanceStatus='" & "Present" & "'")
and it is working fine.
But I want to modify this code to count records based on another 2 combo boxes which are "AtnMonth" and "AtnYear"
"cboEmpID" = represents EmpID's
"AtnMonth"= represents "AttendanceMonth" from "Attendance" Table
"AtnYear"= represents "AttendanceYear" from "Attendance" Table
I strucked here
Please anybody help me.Thanks in advance