S
sweyer via AccessMonster.com
I have a form named Employees. Each employee is tied to the company they work
for - I call them Groups. We are an insurance broker. So each employee has a
list of policies, each policy is tied to an Employee and a Group. So inside
the form Employees, I have a subform (datasheet) named EmployeePolicies. When
a Group is chosen in a combo box, the subform is supposed to query to find
the Policies that are only tied to that Group. (I have a field called
GroupPolicy - a combo box in the subform, and for each employee you would
choose the GroupPolicy that the employee has elected, and then type in their
ContractNo, EffectiveDate, CoverageType, etc.). So basically what I would do
is choose a group, and when I enter the subform, I would click the arrow next
to GroupPolicy and that Group's Policies would show up.
Anyway, the problem I am having is this: When you choose the FIRST Group it
works fine. But say you accidently choose the wrong group, and need to select
a different group, it doesn't requery for the second group, it still show's
the information for the first Group. How can I get the subform to requery
EVERY time the Group field is updated.
Also, I don't know if this makes a difference, but this problem didn't come
about until I changed the BeforeUpdate property of both the parent and child
forms. It asks the user if they want to save, if yes, save, if no, undo.
Any ideas?
for - I call them Groups. We are an insurance broker. So each employee has a
list of policies, each policy is tied to an Employee and a Group. So inside
the form Employees, I have a subform (datasheet) named EmployeePolicies. When
a Group is chosen in a combo box, the subform is supposed to query to find
the Policies that are only tied to that Group. (I have a field called
GroupPolicy - a combo box in the subform, and for each employee you would
choose the GroupPolicy that the employee has elected, and then type in their
ContractNo, EffectiveDate, CoverageType, etc.). So basically what I would do
is choose a group, and when I enter the subform, I would click the arrow next
to GroupPolicy and that Group's Policies would show up.
Anyway, the problem I am having is this: When you choose the FIRST Group it
works fine. But say you accidently choose the wrong group, and need to select
a different group, it doesn't requery for the second group, it still show's
the information for the first Group. How can I get the subform to requery
EVERY time the Group field is updated.
Also, I don't know if this makes a difference, but this problem didn't come
about until I changed the BeforeUpdate property of both the parent and child
forms. It asks the user if they want to save, if yes, save, if no, undo.
Any ideas?