I have recently been thrown back into the wonderful world of Access after a brief break, and have inherited a Db. It is a fairly straightforward applicant tracking db for and HR dept.
On the form used for inputting new applicants into the db, I have encountered something curious. When the previous developer created combo boxes, he stacked a text box underneath the combobox. The combobox is populated through a bit of SQL, and the text box is underneath, bound to the column in the table.
Here is the code for the text box:
and here is the code for the combobox
I just don't understand why this is necessary, and why I have a run-time error when I click an option in the combobox; Candidate Tracking(Form) can't move the focus to the control action (action in the text box).
I am a bit of a dolt when it comes to this stuff, so please excuse me and chastise me all you want if this is elementary.
Thanks a bunch!
___________________________________________________________
With your thoughts you create the world--Shakyamuni Buddha
On the form used for inputting new applicants into the db, I have encountered something curious. When the previous developer created combo boxes, he stacked a text box underneath the combobox. The combobox is populated through a bit of SQL, and the text box is underneath, bound to the column in the table.
Here is the code for the text box:
Code:
Private Sub Action_Click()
Me.cboAction.Visible = True
Me.cboAction.SetFocus
Me.cboAction.Dropdown
End Sub
Code:
Private Sub cboAction_Click()
Me.Action = Me.cboAction.Text
Me.Action.SetFocus
Me.cboAction.Visible = False
End Sub
I just don't understand why this is necessary, and why I have a run-time error when I click an option in the combobox; Candidate Tracking(Form) can't move the focus to the control action (action in the text box).
I am a bit of a dolt when it comes to this stuff, so please excuse me and chastise me all you want if this is elementary.
Thanks a bunch!
___________________________________________________________
With your thoughts you create the world--Shakyamuni Buddha