T
Tracey
I want to use a macro to trigger an update query from a subform called
fBenefitDesignView. The update query has a parameter which requires the user
to enter a date. The date is then updated to the underlying table Benefit
Design. However, I need the query to be filtered for the current
BenefitDesignID on the subform fBenefitDesignView so that the date will only
be updated for that record. Currently my update query updates all the records
with the date from the parameter. I've tried to put in a criteria on the
update query for BenefitDesignID as
[Forms]![fBenefitDesignView]![BenefitDesignID], but the query treats that as
another parameter to prompt me for.
Here is my current SQL:
UPDATE [Benefit Design] SET [Benefit Design].BenefitDesignEndDate = [What is
current Benefit Design's end date?]
WHERE ((([What is current Benefit Design's end date?])=[What is current
Benefit Design's end date?]));
How do I filter the query by the BenefitDesignID from the current subform
fBenefitDesignView?
Thanks for any help!
fBenefitDesignView. The update query has a parameter which requires the user
to enter a date. The date is then updated to the underlying table Benefit
Design. However, I need the query to be filtered for the current
BenefitDesignID on the subform fBenefitDesignView so that the date will only
be updated for that record. Currently my update query updates all the records
with the date from the parameter. I've tried to put in a criteria on the
update query for BenefitDesignID as
[Forms]![fBenefitDesignView]![BenefitDesignID], but the query treats that as
another parameter to prompt me for.
Here is my current SQL:
UPDATE [Benefit Design] SET [Benefit Design].BenefitDesignEndDate = [What is
current Benefit Design's end date?]
WHERE ((([What is current Benefit Design's end date?])=[What is current
Benefit Design's end date?]));
How do I filter the query by the BenefitDesignID from the current subform
fBenefitDesignView?
Thanks for any help!