944,198 Members | Top Members by Rank

Ad:
Nov 11th, 2009
0

VB6 Form Refresh help Request

Expand Post »
i have 2 forms..when i start my application..form1 loads...then i navigate to form2 and adds some data in database using controls on form2, which should also reflect on form1...

My data is not getting reflected on form1, after i hide form2...before giving "form2.hide", i tried giving "form1.show" and "form1.refresh" but i am still not able to get the updated data on form1.

Plz help.
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
pankaj.garg is offline Offline
70 posts
since Nov 2009
Nov 11th, 2009
1
Re: VB6 Form Refresh help Request
In form1 create a public sub so when you hide form2 you can call it...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Form1.MyPublicSub
  2. Me.Hide
then in the form1's mypublicsub you instruct whatever data access method you are using to refresh/requery itself and to redisplay the information.



Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
Nov 11th, 2009
0
Re: VB6 Form Refresh help Request
you need to refresh your data control. like:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. data1.refresh
  2. msflexgrid.refresh
etc.
Reputation Points: 14
Solved Threads: 78
Practically a Posting Shark
abu taher is offline Offline
835 posts
since Jul 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: saving image in ms access using vb6
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: communicate with the system





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC