View Full Version : Requery the subform


John Boyle
11-08-2001, 03:35 AM
I have a main form with two subforms. Non of the forms are bound. On subform1, I have a list of items with a check box. If the user selects check marks on various items, I want the subform2 to display the items selected in sugform1. If I close the form and reopen the form, then the selected items are displayed just as I wanted them to be. Is there a way to requery, refresh or something so I don't need to close and re-open the form to display the selected items?
Thanks in advance for your help.
P.S. Does anybody know what happend to Angello? He has been very helpful and I have not heard or seen him post since 9/11/01. I hope everything is ok with him.

crosmill
11-08-2001, 04:28 AM
You might be able to make a macro that Repaints the subform, if this works then set the afterupdate() properties of the check boxes to run the macro.

John Boyle
11-13-2001, 10:54 AM
The re-paint didn't seem to work. Does anybody else have any ideas?

John.Woody
11-13-2001, 11:08 AM
If you only want the second subform to display information you could display it in a list box and then refresh it after updating subform one.

HTH

Jack Cowley
11-13-2001, 12:10 PM
In the After Update event of one of the check boxes on Subform1 try this:

[Forms]![MainForm]![Subform2].requery