Right, me again guys!
This one seems simple, but i cant seem to get it to work.
I have put together a basic query builder on a dialog form, which is opened by a button on the main form (Form 1).
So the user would click the button on Form 1, it would open the querybuilder, (Form 2) once the query has been written and “Generate” button has been clicked, Form 2 has the button with all the code basicall.
When the button on form 2 is clicked it should alter the source object of the subform on form 1, and then requery it.
below is the cod efor that part
DoCmd.Close acForm, "frm_SYS_QryBuilder" 'Change FrmSubResult course object to the new Query and Refresh Me!FrmSubResult.SourceObject = "Query.TempQuery" 'Needed to check value, will not be in release version strSource = Me!FrmSubResult.SourceObject Me!FrmSubResult.Form.Requery
I have googled, and other people have had similar problems, but i couldnt find a solution that helped.
Can anyone help?