J
jas580
Hi,
I have two subforms and a bound text box outside the subforms, where the
following process happens:
1. User selects a row in Subform A
2. The selected row has an ID#. If the user selects a different row, the
text box ID# changes.
3. Subform B has a graph based on a query. That query uses the ID# in the
text box as a criteria filter.
Now my problem:
I can't get Subform B and the chart to requery when the user selects a
different row. The text box and the underlying query adjusts when I change
row selection, but not the subform and chart. I thought I could just put a
"Me.SubformB.Requery" in the After Update event for the text box, but it
doesn't work. The strange thing is I tried adding a command button with that
same code and it refreshes the chart perfectly. However, I don't want the
button. I don't understand what the difference is between the two that would
allow the code to work for the button, but not the text box.
Thanks for the help!
-Jeff
I have two subforms and a bound text box outside the subforms, where the
following process happens:
1. User selects a row in Subform A
2. The selected row has an ID#. If the user selects a different row, the
text box ID# changes.
3. Subform B has a graph based on a query. That query uses the ID# in the
text box as a criteria filter.
Now my problem:
I can't get Subform B and the chart to requery when the user selects a
different row. The text box and the underlying query adjusts when I change
row selection, but not the subform and chart. I thought I could just put a
"Me.SubformB.Requery" in the After Update event for the text box, but it
doesn't work. The strange thing is I tried adding a command button with that
same code and it refreshes the chart perfectly. However, I don't want the
button. I don't understand what the difference is between the two that would
allow the code to work for the button, but not the text box.
Thanks for the help!
-Jeff