Main Form/Subform

I have a subform(linked to the subform control) in a main form. I have a button on the main form. If I click on the button I want the rows in the subform to be displayed in a different sort order. SETCURRENTKEY does not seem to work when used from the main form. If I try to call a function of the subform from the mainform(I do SETCURRENTKEY in the function), it gives error that form is not open. Can someone help? Pari Somasundaram.

You can run a function in the subform where the new key is set, e.g.: Currform.yourform.form.function(NewOrder); Reijer

quote:


Originally posted by reijer: You can run a function in the subform where the new key is set, e.g.: Currform.yourform.form.function(NewOrder); Thanks Reijer. That worked! Pari Somasundaram Reijer