Microsoft
Software
Hardware
Network
Question : Getting Values From Form Controls
I have an unbound form with some combo boxes. I want the values of these controls to be available globally. So I wrote a function in a global module to get these values, as follows:
Public Function Year2Term As String
If Not CurrentProject.AllForms("f
rmMenu").I
sLoaded Then Exit Function
Year2Term = Form_frmMenu.cbxCompareYea
r2.Value
End Function
Problem is, it doesn't always detect the current value. If I change the value in a control, the function should yield that new value, but it doesn't; it give me whatever was there originally. Is there a better way to get at that value?
Mike
Answer : Getting Values From Form Controls
definitely, if you are using this values in queries, using public variables is a good idea.
Random Solutions
class sessions vars
Cost of CAT5e cable installation
RHEL command to see how much ram and hard drive in the box
Any ideas how to create your own loadbalancer using linux?
sendAndLoad onHTTPStatus issue
Trying to connect SSIS packages to Oracle database
Windows XP and Microsoft Outlook and Windows Installer problems
This search script is presenting the option for Next 10 when there aren't any results. What do I need to add to not show when there aren't results?
Column border style problem
Export Access 2010 Report to CSV with Headers?