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
Delphi Pagecontrol - each Tabsheet has its own popup menu
"Another installation in progress..." MSI Installer Issue in Windows Vista
page set up in a word
SQL 2008 Job can't start/stop services
Add DC to Windows Server 2003 Network - error msg
I have designed an website in flash as well in html, if the browser dont have flash then i want them to be directed to the html version, or else they need to directed to flash version
Discrete Math, Big O, Little o
How to Setup Mandatory Profiles Server 2008 R2
on a web application connecting to oracle. Finding a user session from their computer to oracle
Backup Exec 12