Would just like some advice with how best to do this as everything I've tried isn't quite working how I like.
I have a main form which has some stats on in the form of labels and have a procedure called UpdateStats() which is in the code for this form (frmMain) when bring up the edit form and make changes and close it I'd like this UpdateStats to execute again, frmMain is not hidden or closed during the edit process.
I've tried using the GotFocus event of the form but this doesn't seem to fire even when adding frmMain.Focus before the Me.Close on the edit form.
I've also tried using the Activate event of the form but this then calls the UpdateStats() procedure on the initial opening of the application which causes problem because at this stage their is nothing to calculate stats for so am left with object instance errors etc.
Any advice is appreciated.
Aucun commentaire:
Enregistrer un commentaire