MrChameleon
New member
- Local time
- Today, 14:42
- Joined
- Sep 25, 2017
- Messages
- 5
Hi. Two quick queries...
First, I can't understand why the following line of code doesn't work?
DoCmd.Close acForm, "frmProgressWindow", acSaveNo
Second, I have a form with a Listview on it and several buttons which call other forms which change dtata sets that could influence the data that's displayed in the listview on the first form. Originally I was populating my listview in the form_activate event, but that doesn't cause a refresh of the listview when the form receives rrent works, but it also refreshes several times when the form is open causing the selection in the listview to jump about.
Simple query is, which event is the best to be triggered just when a form gets the focus back from another form closing? I've scoured MSDN and this site but can't get clarity.
First, I can't understand why the following line of code doesn't work?
DoCmd.Close acForm, "frmProgressWindow", acSaveNo
Second, I have a form with a Listview on it and several buttons which call other forms which change dtata sets that could influence the data that's displayed in the listview on the first form. Originally I was populating my listview in the form_activate event, but that doesn't cause a refresh of the listview when the form receives rrent works, but it also refreshes several times when the form is open causing the selection in the listview to jump about.
Simple query is, which event is the best to be triggered just when a form gets the focus back from another form closing? I've scoured MSDN and this site but can't get clarity.