I have an Access2000 multi-column listbox whose RowSource is a query that I want to automatically update after the underlying table has been updated. The table data comes from a large polynomial calculation that typically generates upwards to 200 records (8 fields non-indexed). Before the calculation is run all records in the table are deleted with a DELETE.* query. Then the calculation is performed and the table is appended. All works well. Next a requery is issued for the listbox - Me!listbox.requery. If this is the first instance of the calculation (first time the form is opened) the requery works. However on subsequent calculations the requery doesn't update the listbox with the new records, the listbox simply displays the last recordset. If I push F9 the listbox will update but sometimes only after 2 or maybe 3 pushes. I've tried applying the RowSource programatically but no difference. The same problem exists if I use continuous subform or datasheet subform instead of the listbox except that if I place the cursor on a record in the subform after the programmatic requery the record changes to #Deleted. Then if I push F9 to requery, the subform is updated and all appears okay. I had this problem on a similar calculator before but worked around it by filling the listbox using the ADO GetString method however that only works with small recordsets because the listbox RowSource is limited to 2048 characters. Thanks to all for any info on this frustrating problem.
CityLimit
CityLimit