helpneeded
Programmer
How can I extract a form/comboBox name from a string. I pass an openArgs (Forms!frmEnquiries!comboSup) to a form called frmsuppliers. When I close that form I want to pass a value back to Forms!frmEnquiries!comboSup.
Dim MyCombo as ComboBox
Set MyCombo = Me.OpenArgs
MyCombo.Value = 99
The problem is that Me.openArgs is a string and MyCombo is not. I can cheat and do this
Set MyCombo = CVar(Me.openArgs)
MyCombo.value = 99
It works, but there must be a better way.
Thanks in advance to anyone who can help
Dim MyCombo as ComboBox
Set MyCombo = Me.OpenArgs
MyCombo.Value = 99
The problem is that Me.openArgs is a string and MyCombo is not. I can cheat and do this
Set MyCombo = CVar(Me.openArgs)
MyCombo.value = 99
It works, but there must be a better way.
Thanks in advance to anyone who can help