
Hi, I'm using Access to pull the first few characters of a field from a table, and put them in a combo box. Users can then select from one of those values, hit submit, and then the full text of the index appears in the adjacent text box.
Fields are:
Command1
Combo1
Text1
Database is: "uncanny"
Code:
Code:
Private Sub Command1_Click()
Dim can As String
Combo1.SetFocus
can = Combo1.text
Text1.SetFocus
Text1.text = can
Text1.Enabled = True
End Sub
'
Private Sub Command120_Click()
' clear text box
Text1.SetFocus
Text1.text = (" ")
End Sub
What is the code for displaying column1 of uncanny in the combo box, being able to click that value, and then having the concatenated values of columns one and two appear in the text box? I have an auto-numbered index in my table. I hope this is clear.
Opio