For an example: I have name, phone number, job title. That person may have already been listed on a previous form. When typing up new information, I may need to add the same person and their information in that part of the form. Instead of typing the information over, when I type their name I would like the rest of the information to automatically fill in. Hopefully you can understand my explanation. Any help would be appreciated.
Are the data of this person posted in the database by the "previous form"? if so, you can query the database at the LOSTFOCUS event of the control which holds the primary key, retrieve the rest of the information and append it to the appropriate controls. If the data aren't in the database, you can persist them in a public array and again query the array for the information you want. As can be seen, I am only speculating here since you haven't provided enough information of your app. When you identify your situation I might be able to provide some code as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.