I've been using Access forms as menus in a small app I'm developing. My main menu has a couple of text boxes (locked) to display certain statistics, and I want to be able to change their values from outside the module (i.e. a submenu/different form).
Me works fine if I'm within the main menu form's module, but in different modules, what are my options?
It seems these might work:
Which version do you think offers the best performance?
Me works fine if I'm within the main menu form's module, but in different modules, what are my options?
It seems these might work:
Code:
Forms!frmMainMenu!txtStat1.Requery
Dim MyForm As Form_frmMainMenu
MyForm.txtStat1.Requery
Dim MyForm As Form
Set MyForm = Forms!frmMainMenu
MyForm.txtStat1.Requery
Form_frmMainMenu.txtStat1.Requery
Which version do you think offers the best performance?