Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form and Control Refresh Issues

Status
Not open for further replies.

megmogg

Programmer
Jul 14, 2005
76
GB
Hi All

I have a base class form that when it gets the focus, it requeries all the controls on the form. This is because each control is getting data from SQL Server.

I have user form that is a search screen. Top half of the screen are combos that filter what appears in a grid below.

Each combo refreshes the grid when it recieves focus or on interactive change.

Trouble is, when the user is in another form and they click back onto this one, the form itself refreshes the data, which is fine, but if a combo box has focus, it then gets the data again.

I dont want to stop the form doing a refresh because when a user navigates back to this form and nothing has the focus, they will be seeing old data.

I am sure it is just a matter of structuring everything, but need some suggestions as I am getting lost in my own code.

Any fresh ideas?

Thanks
 


Thanks for the suggestion....think I'll heed that advice.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top