I am trying to write code behind a button on my form that will populate data from a specific record in the form for update. The form contains Employee Data andis driven by the employee ID. SO i want to be able to hit a button and pull up the form with the employees information already populated so taht I can update the information.. help please
This line will open your form to the EmployeeID that is in the txtEmployee text box. You will need to change the name of the Employee text box. But if you put this in your button's OnClick event it will open the form where you need it to.
This is close to what i needed, but what i really wanted to see was a button on my form where i could click update and a script box would pop up asking me which record i would like to find. I put in the employee id and click enter and then the information is loaded into the form. its one form so nothing additional to open. I used to have a peice of code that did this, but i just cant find it!!!
Actually i was thinking that it would be more asthetic on one form. input the id in a text feild and then click the cmd button and have it retrieve the information into the form for updating.. just dont know the code