Are you saving the company data anywhere, like in a database?
Netcode
Veteran Poster
1,037 posts since Jun 2009
Reputation Points: 43
Solved Threads: 70
Skill Endorsements: 0
Then first, you need a form for data collection. All data must be saved in your database so in the retrieval section, when lest say a company_ID or name is entered in a text box and the 'ENTER' key is pressed, all details(description) of the company saved in the database would be retrieved.
That's a start point. You must have a data source if you want to retrieve data.
Netcode
Veteran Poster
1,037 posts since Jun 2009
Reputation Points: 43
Solved Threads: 70
Skill Endorsements: 0
You can do on a very simple way:
Private Sub textBox1_KeyDown(sender As Object, e As KeyEventArgs)
If e.KeyCode = Keys.Enter Then
textBox2.Text = GetData(textBox1.Text.Trim())
End If
End Sub
Private Function GetData(str As String) As String
Dim strReturn As String = ""
Select Case str
Case "A001"
strReturn = "My 1st company name"
Exit Select
Case "A002"
strReturn = "My 2nd company name"
Exit Select
End Select
Return strReturn
End Function
But this is an exmple code, I dont know where you will get the data, but this is one of choices to use (using switch statement).
Mitja Bonca
Posting Maven
2,561 posts since May 2009
Reputation Points: 642
Solved Threads: 486
Skill Endorsements: 13