G
Guest
Using MS Access 2K on Windows XP.
I have a form with a bound text control and an unbound comb-box. The
combo-box is transparent and placed "behind" the text control.
What I'd like to happen is that when the text control gets focus, if there
is no value in it, then have the combo-box drop down.
In the "Get Focus" of text control, I have the following code:
==========================
If IsNull(Me.txtElement) Then
Me.cboElement.SetFocus
End If
==========================
In the "Get Focus" of combo-box, I have the following code:
============================
MsgBox "Inside cbo got focus"
Me.cboElement.Dropdown
============================
When I enter the form, the focus shifts to the combo-box, but it does not
drop down.
Am I missing something here? Will appreciate any help.
-Amit
I have a form with a bound text control and an unbound comb-box. The
combo-box is transparent and placed "behind" the text control.
What I'd like to happen is that when the text control gets focus, if there
is no value in it, then have the combo-box drop down.
In the "Get Focus" of text control, I have the following code:
==========================
If IsNull(Me.txtElement) Then
Me.cboElement.SetFocus
End If
==========================
In the "Get Focus" of combo-box, I have the following code:
============================
MsgBox "Inside cbo got focus"
Me.cboElement.Dropdown
============================
When I enter the form, the focus shifts to the combo-box, but it does not
drop down.
Am I missing something here? Will appreciate any help.
-Amit