G
Guest
Hello,
My Access application tracks an employee's progress through a process
similar to hiring. There are 5 steps in the process. I track 4 of the steps
by counting the number of times a value appears in a date field for that
step. The count is then displayed and used in a calculation. The 5th step
is more complicated. The 5th step needs to determine if the employee has
verified that he can access all the applications that he should have access
to.
My process tracking table has the first 4 dates. The application access
info comes from a different table. This process tracking table also has a
field to store the count of the number of applications where access has been
verified. On the form to do all this, I use the Forms' current event to work
with the four dates. This is all set and working fine. But for the
application access, I need to run a query against the 2nd table to get a
count, then get the count stored in the process tracking table.
After I have the count in the process tracking table, I can do the necessary
calculations to determine a "percentage of hiring process completed".
How can I run that query and get the value back to the table?
My query to get the count looks like:
SELECT Count (*)
FROM <tblName>
WHERE EmplNum = Me.EmplNum
What I need should look something like this (Syntax is not correct)
Update tblProcessTracking
Set AppsVerifiedCount =
Select Count(*)
FROM <tblName>
WHERE EmplNum = Me.EmplNum
Can I do this? If not, can someone help me with how to accomplish this?
Thanks in advance,
My Access application tracks an employee's progress through a process
similar to hiring. There are 5 steps in the process. I track 4 of the steps
by counting the number of times a value appears in a date field for that
step. The count is then displayed and used in a calculation. The 5th step
is more complicated. The 5th step needs to determine if the employee has
verified that he can access all the applications that he should have access
to.
My process tracking table has the first 4 dates. The application access
info comes from a different table. This process tracking table also has a
field to store the count of the number of applications where access has been
verified. On the form to do all this, I use the Forms' current event to work
with the four dates. This is all set and working fine. But for the
application access, I need to run a query against the 2nd table to get a
count, then get the count stored in the process tracking table.
After I have the count in the process tracking table, I can do the necessary
calculations to determine a "percentage of hiring process completed".
How can I run that query and get the value back to the table?
My query to get the count looks like:
SELECT Count (*)
FROM <tblName>
WHERE EmplNum = Me.EmplNum
What I need should look something like this (Syntax is not correct)
Update tblProcessTracking
Set AppsVerifiedCount =
Select Count(*)
FROM <tblName>
WHERE EmplNum = Me.EmplNum
Can I do this? If not, can someone help me with how to accomplish this?
Thanks in advance,