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
How do I enable audio mapping over RDP on Windows 7?
Group Policy applied to Terminal Server is stopping Shortcuts placed in Public Desktop from appearing
Emails failing to be delivered
Exchange 2007 Service Pack 3 Install
PPT Taskkill Command VBS MsgBox
Task Manager ASP.Net Web Application
dell powervault ejection issues
Multi Homed Windows 2008 Server
HOW TO: remove the Anonymous User from the Everyone Group....
PHP Email