G
Guest
I have a query that will return the count of evente corresponding to a
specific employee based on their employee ID number.
This is the SQL from the query:
SELECT Count(*) AS Expr1
FROM tblCME_Data
WHERE
(((tblCME_Data.EmpIDNo)=[Forms]![frmEmployeeBudget]![txtEmployeeID_No]));
If I run the query it works just fine. Instead of "running the query", I
want to place this SQL into my form's load event and have the result be
assigned to a variable.
I can't seem to find the syntax. I've even tried a DCount() funstion but I
can't seem to get that to work either.
Any help is appreciated. Thanks...
specific employee based on their employee ID number.
This is the SQL from the query:
SELECT Count(*) AS Expr1
FROM tblCME_Data
WHERE
(((tblCME_Data.EmpIDNo)=[Forms]![frmEmployeeBudget]![txtEmployeeID_No]));
If I run the query it works just fine. Instead of "running the query", I
want to place this SQL into my form's load event and have the result be
assigned to a variable.
I can't seem to find the syntax. I've even tried a DCount() funstion but I
can't seem to get that to work either.
Any help is appreciated. Thanks...