Clearing listindex value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsteph
    New Member
    • Oct 2006
    • 71

    Clearing listindex value

    I've got a form set up that has a series of textboxes to enter employee info, with a listbox at the bottom listing all the employees with their title (to make it easier to find employees to edit information).

    I'm having a problem though - if I click around on the listbox to view some employee records, then want to add a new employee, when I click on the add record button it edits the last employee I looked at with the new information. I've added a clear form box, to clear all the textboxes, so that the user can enter info, but it still places the new record over an existing record (the last record looked at with the list box).

    Is there a way for me to clear the listindex value (or reset the listbox all together) so that when I enter new info, and click add employee it doesn't overwrite the old employee?
  • rsteph
    New Member
    • Oct 2006
    • 71

    #2
    Any thoughts on this?

    Comment

    • JKing
      Recognized Expert Top Contributor
      • Jun 2007
      • 1206

      #3
      Whats the code behind your add new record button? Am I correct in assuming that you're using a search method under the afterupdate of the list box?

      Comment

      Working...