CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    264

    Refresh or Update

    I have a form that displays a listview of all the records in the database. When the user clicks the EDIT button, another form appears and they can change that record. The second form(Edit Form) displays a listbox of all the field names for that database for that record. Below the listbox there are text boxes with the current value and new values. When they click on a field in the list box, the current value is displayed. They can enter a new value and click the save button and it updates the database.

    My question is this. I am saving to the database fine, but how do I refresh the list box and/or current recordset that I am using so that if they choose another field and then go back to the first field they modified, it reflects the new value? ALSO, how do I refresh the listview in the first form when I am done editing? Any code would be great.

    Thanks.


  2. #2
    Join Date
    Jan 2000
    Posts
    264

    Re: Refresh or Update

    Nevermind. Fixed it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured