Joe:
Listbox and Combobox controls have a Requery() method to refresh the data in the control from the underlying source.
On Tue, Aug 23, 2016 at 11:02 AM, Joe Yoder joe@wheypower.com wrote:
Yes Laurie - both forms are modal.
Alan - your suggestion that there may be a timing issue has prompted my addition of another test button on the form with the listbox. The button code consists of: thisform.list1.click thisform.list1.Refresh thisform.refresh
When I add a record it does not show on the screen. I can drag the scroll bar up and down - still no record. I can click the test button - no effect. I can click the up arrow on the scroll bar - no effect. When I click the down arrow on the scroll bar or any data area in the listbox the record shows up.
On Tue, Aug 23, 2016 at 10:22 AM, Laurie Alvey trukker41@gmail.com wrote:
Is the PMDetail form modal?
Laurie
On 23 August 2016 at 15:11, Alan Bourke alanpbourke@fastmail.fm wrote:
If it's bound directly to the table a simple Refresh() should do it. However when you show the form I think it will just show it and then the next lines in your button click will run, i.e. it won't wait for your PMDetail form to close.
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]