|
-
Jun 26th, 2000, 11:35 PM
#1
Thread Starter
Member
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
-
Jun 27th, 2000, 03:26 AM
#2
Addicted Member
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
-
Jun 29th, 2000, 04:09 AM
#3
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|