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
Auto Send Excel as Email Attachment
Add Property to asp.net user control to make reusable
Cannot Create a Fax Account in Windows 7
Outlook 2010 NK2 file
Block Logme internally
When I ping 192.168.1.4 I get reply from 192.168.1.127
Difference between Icefaces,myfaces,richfaces
in JSF?
permissions to be able to script objects
Change primary smtp addresses for 29 users using powershell for exchange
How many keywords is too many in the meta data?