Results 1 to 3 of 3

Thread: ListView Refreshing

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    43
    I have a MDI Form with child forms. One is a ListView that shows a query of my database, a list of customers. Another child form allows you to edit or add customers to the database. When exiting the add/edit form, I would like to have the ListView refresh the data as soon as the other form is closed. The data is being updated, because I can close the form and reopen it, and the data is updated. How do I refresh the data on the ListView or on the child form it is on? Is there a change focus property for the form or control, or can I do it in the unload command on the Add/Edit form. Rather new to this.

    Thanks.
    Tim

    VB6, SP4
    GT Vengeance

  2. #2
    Addicted Member JasonGS's Avatar
    Join Date
    May 2000
    Location
    California
    Posts
    155
    On the customer list child, I would create a public function that refreshes the list. When you click close on the add/modify window, call frmCustomerList.UpdateData

  3. #3
    Lively Member nutstretch's Avatar
    Join Date
    May 2000
    Location
    UK
    Posts
    85
    The only way i found to refresh the listview straight away was to clear it and re-enter the data . i am a novice to this but it worked
    if at first you don't succeed, drink the rest of the bottle and loop to the same place tomorrow

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