G
Guest
I have created an update query with 3 fields.
1. Markup – This is the field I intend to update. In the “Update To:†box
in the query, I have [Enter the new multiplier:], which will prompt users to
enter the new value when the query is run. This works as desired.
2. ProjectID – In the “Criteria:†box, I have [Forms]![Bid
Subform].[ProjectID]
3. BidNumber - In the “Criteria:†box, I have [Forms]![Bid
Subform].[BidNumber]
I worked great when the ProjectID and BidNumber criteria were entered into
the query design view, but I need users to be able to do this from the form
“Bid Subformâ€, so I tried to reference the controls in the subform so that
when you are working in a particular BidNumber, it would updated only the
records related to it. I intend to place a button on that subform that would
run the query. The only thing users should have to enter is the new value in
Markup when prompted.
The problem I have is that when I run the query, it still asks for the
parameter value of ProjectID & BidNumber in subsequent dialogue boxes. I
have also tried a ! between the subform reference and control reference.
This yielded the same result.
What might I have wrong with the criteria? Thanks for any feedback!
1. Markup – This is the field I intend to update. In the “Update To:†box
in the query, I have [Enter the new multiplier:], which will prompt users to
enter the new value when the query is run. This works as desired.
2. ProjectID – In the “Criteria:†box, I have [Forms]![Bid
Subform].[ProjectID]
3. BidNumber - In the “Criteria:†box, I have [Forms]![Bid
Subform].[BidNumber]
I worked great when the ProjectID and BidNumber criteria were entered into
the query design view, but I need users to be able to do this from the form
“Bid Subformâ€, so I tried to reference the controls in the subform so that
when you are working in a particular BidNumber, it would updated only the
records related to it. I intend to place a button on that subform that would
run the query. The only thing users should have to enter is the new value in
Markup when prompted.
The problem I have is that when I run the query, it still asks for the
parameter value of ProjectID & BidNumber in subsequent dialogue boxes. I
have also tried a ! between the subform reference and control reference.
This yielded the same result.
What might I have wrong with the criteria? Thanks for any feedback!