Information générale
Catégorie:
Codage, syntaxe et commandes
>>I seem to recall that if I had an unbound grid on a form, the grid would >use a table opened by the DE of the form as its RecordSource. I had to set >the RecordSource of this grid to [ empty string ] in the form init so the >form and the "serach results" grid would properly display nothing when the >form was first opened. Once there were search results, I would then bind >the grid to that results cursor. Is this similar to what you are doing?
>
>Exactly, but I am still getting a refresh error with the empty string.
>>>What do you mean by "refresh error". Can you post the code around and >>>where the error is occuring as well as the error message?
If I do a thisform.refresh when RecordSource is set to '', I get an error. So I took off the refresh. Now its back to the old problem, the Grid gets populated with the currently open table and not from the cursor, even though I have a "thisform.MyGrid1.RecordSource = "search_crsr" after the Select statement.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement