R
ryguy7272
I am new to using yes/no fields. I have two tables:
My ‘goals’ table has these fields:
IDKey, Employee, and Goals
My ‘Mapping’ table has these fields:
ID, Name, RVP, and Changed (this is the yes/no field).
I have a query, named ‘LookupChanges’ and the SQL is as such:
SELECT Goals.IDKey, Goals.Employee, Sum(Goals.Goals) AS SumOfGoals,
Mapping.RVP
FROM Goals LEFT JOIN Mapping ON Goals.IDKey = Mapping.ID
GROUP BY Goals.IDKey, Goals.Employee, Mapping.RVP;
Pretty simple stuff. Well, in all honest, the query may be irrelevant right
now. I was hoping to find a way of setting this up so a user, a colleague of
mine, could put checks in boxes in the yes/no field to indicate changes to
our other colleague’s goals. I was hoping to come up with a way of checking
a box next to a name, and linking this to some VBA code, so when the macro
fires, all the names with checks in the yes/no fields will be used in the
query. Then we will know which employees goals changed, as well as all
employees who report to these employees, so all goals will be updated
simultaneously. I hope this makes sense. I have lots of experience with
Access, but almost no experience with the yes/no fields. If there is a
sample DB out there somewhere, which may do what I am describing here, please
send me a link to it so I can see the structure of the DB, the logic, and the
code.
Regards,
Ryan---
My ‘goals’ table has these fields:
IDKey, Employee, and Goals
My ‘Mapping’ table has these fields:
ID, Name, RVP, and Changed (this is the yes/no field).
I have a query, named ‘LookupChanges’ and the SQL is as such:
SELECT Goals.IDKey, Goals.Employee, Sum(Goals.Goals) AS SumOfGoals,
Mapping.RVP
FROM Goals LEFT JOIN Mapping ON Goals.IDKey = Mapping.ID
GROUP BY Goals.IDKey, Goals.Employee, Mapping.RVP;
Pretty simple stuff. Well, in all honest, the query may be irrelevant right
now. I was hoping to find a way of setting this up so a user, a colleague of
mine, could put checks in boxes in the yes/no field to indicate changes to
our other colleague’s goals. I was hoping to come up with a way of checking
a box next to a name, and linking this to some VBA code, so when the macro
fires, all the names with checks in the yes/no fields will be used in the
query. Then we will know which employees goals changed, as well as all
employees who report to these employees, so all goals will be updated
simultaneously. I hope this makes sense. I have lots of experience with
Access, but almost no experience with the yes/no fields. If there is a
sample DB out there somewhere, which may do what I am describing here, please
send me a link to it so I can see the structure of the DB, the logic, and the
code.
Regards,
Ryan---