Okay - this is a fun one...
I have a main form (called frmApp with class cApp) which, when the user presses a certain button button, can open (show) another form (frmHistory with class cHistory).
Now both of these forms communicate with a common database [Access], the thing is the user can open the frmHistory form and make changes to the database and then close that form (and still be in the cApp form) but the Datagrid in cApp isn't Refreshing because it has no way of knowing that data has changed.
I need an efficient way for my cHistory class to "tell" my cApp class that it needs to refresh the datagrid.
Is there a way for my cHistory class to "launch an instantce" of a function in my cApp class to force cApp to refresh it's datagrid?
cApp already has a function in cApp (RefreshGUI()) that does all that I need, I just need to find a way to get cHistory to tell cApp that it needs to launch RefreshGUI() now.
I tried making it PUBLIC but in cHistory doing capp. doesn't give me the function - and even there I don't know if that would work?
Any help/hints would be appreciated, thanks
I have a main form (called frmApp with class cApp) which, when the user presses a certain button button, can open (show) another form (frmHistory with class cHistory).
Now both of these forms communicate with a common database [Access], the thing is the user can open the frmHistory form and make changes to the database and then close that form (and still be in the cApp form) but the Datagrid in cApp isn't Refreshing because it has no way of knowing that data has changed.
I need an efficient way for my cHistory class to "tell" my cApp class that it needs to refresh the datagrid.
Is there a way for my cHistory class to "launch an instantce" of a function in my cApp class to force cApp to refresh it's datagrid?
cApp already has a function in cApp (RefreshGUI()) that does all that I need, I just need to find a way to get cHistory to tell cApp that it needs to launch RefreshGUI() now.
I tried making it PUBLIC but in cHistory doing capp. doesn't give me the function - and even there I don't know if that would work?
Any help/hints would be appreciated, thanks