Hey there, I'm new to the forum.
I've got a form with textboxes and comboboxes and I'm trying to set up some "hotkeys" so that if the user presses an F-key while still writing on the controls, a certain function will be run.
So for each of the controls I'm writing an OnKeyDown event. The problem is that, as the active control is still "dirty", MyControl.value is generally null, and I need to update the value to work with it later. Am I being clear?
I've solved it for textboxes with
Me.ActiveControl.Value = Me.ActiveControl.Text
and it works like a charm. But I'm stuck with the comboboxes.
How can I make the combobox.value update as if the user had hit the enter key? They are typical two-column comboboxes with a hidden bound first column which stores an id and a second column with text that might be partly written by the user.
Thanks a lot for your help,
Lenni.
I've got a form with textboxes and comboboxes and I'm trying to set up some "hotkeys" so that if the user presses an F-key while still writing on the controls, a certain function will be run.
So for each of the controls I'm writing an OnKeyDown event. The problem is that, as the active control is still "dirty", MyControl.value is generally null, and I need to update the value to work with it later. Am I being clear?
I've solved it for textboxes with
Me.ActiveControl.Value = Me.ActiveControl.Text
and it works like a charm. But I'm stuck with the comboboxes.
How can I make the combobox.value update as if the user had hit the enter key? They are typical two-column comboboxes with a hidden bound first column which stores an id and a second column with text that might be partly written by the user.
Thanks a lot for your help,
Lenni.