I am creating a user interface (dialog box) that will capture information, from the user, that will be the criteria for a query (select SQL statement). Two questions: since the query criteria are user definable, what is the best way to formulate SQL select statements whose clauses will vary. Secondly, what is the best way to save the query so that it can later be used to repopulate the original dialog box used to create it? Are there any VFP 8 samples that do what I’m attempting? I would think most applications would need this type of functionality since VFP’s built in query capability is not available when developing.