Hello folks,
I have an application which writes runtime an SQL statement (defined by the user by means of appropriate controls) and assigns it to the DataSource property of a subform of the main form. Thus, the results of the query are automatically displayed in the subform every time I perform that property assignment.
I was wondering why sometimes the data displayed does not get updated (especially when the query does not retrieve any records: the datasheet view does not gey empty and still displays the results of the last search). But, if I do the same assigning the string to another form and then invoking that external form, the results are always correct. Probably when I invoke the external form there is some code behind that form that does better...
Do you know any way to do the same with the subform?
Thanks,
Giulio
I have an application which writes runtime an SQL statement (defined by the user by means of appropriate controls) and assigns it to the DataSource property of a subform of the main form. Thus, the results of the query are automatically displayed in the subform every time I perform that property assignment.
I was wondering why sometimes the data displayed does not get updated (especially when the query does not retrieve any records: the datasheet view does not gey empty and still displays the results of the last search). But, if I do the same assigning the string to another form and then invoking that external form, the results are always correct. Probably when I invoke the external form there is some code behind that form that does better...
Do you know any way to do the same with the subform?
Thanks,
Giulio