R
Robert
I have a list box (lstCustomers) that displays records
from a table (rowsource = select * from table1).
I have a command button (Delete) that has code to delete a
record from Table1.
I then issued a "lstCustomers.Requery" to "refresh" the
data in the listbox, however, it doesn't "refresh" right
away.
I have create two additional command buttons, Refresh and
Requery, that "me.refresh" and "lstCustomers.Requery"
respectively.
If I wait 2-3 seconds after my original "requery" and then
either use the Refresh or Requery button, the listbox is
then displayed correctly.
I have placed code in the program to determine the number
of rows (lstCustomers.ListCount) that are returned after
the original "requery" and the number of rows is correct,
it just doesn't get displayed correctly.
Any suggestions. This is Access 2002.
from a table (rowsource = select * from table1).
I have a command button (Delete) that has code to delete a
record from Table1.
I then issued a "lstCustomers.Requery" to "refresh" the
data in the listbox, however, it doesn't "refresh" right
away.
I have create two additional command buttons, Refresh and
Requery, that "me.refresh" and "lstCustomers.Requery"
respectively.
If I wait 2-3 seconds after my original "requery" and then
either use the Refresh or Requery button, the listbox is
then displayed correctly.
I have placed code in the program to determine the number
of rows (lstCustomers.ListCount) that are returned after
the original "requery" and the number of rows is correct,
it just doesn't get displayed correctly.
Any suggestions. This is Access 2002.