H
Hajo
Hello,
on my form I have a ListBox which represents a few columns of a certain
table. After selecting one row I might click on a button which open another
form and a new RecordSource is set. On this form all detailed entries of the
selected recordset of the ListBox are shown.
Now I modify some record entries and save the changes. And in fact, the
modifications are written in the database. But now the ListBox needs to be
refreshed, because there are still the old values in it.
Well, I can do that by DoCmd.Requery, but the question is when shall I set
this command. I invoke the second form (where I edit the entries) like this:
Private Sub cmdEditEntry_Click()
DoCmd.OpenForm "frmEditEntry"
strSQL= "SELECT ..."
Form_frmEditEntry.RecordSource= strSQL
End Sub
So, where to put the Requery command?
Thank you very much for your help
Hajo
on my form I have a ListBox which represents a few columns of a certain
table. After selecting one row I might click on a button which open another
form and a new RecordSource is set. On this form all detailed entries of the
selected recordset of the ListBox are shown.
Now I modify some record entries and save the changes. And in fact, the
modifications are written in the database. But now the ListBox needs to be
refreshed, because there are still the old values in it.
Well, I can do that by DoCmd.Requery, but the question is when shall I set
this command. I invoke the second form (where I edit the entries) like this:
Private Sub cmdEditEntry_Click()
DoCmd.OpenForm "frmEditEntry"
strSQL= "SELECT ..."
Form_frmEditEntry.RecordSource= strSQL
End Sub
So, where to put the Requery command?
Thank you very much for your help
Hajo