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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bound Text box trouble

Status
Not open for further replies.

rogerl101

IS-IT--Management
Jan 24, 2003
25
US
This may be a simple question, but I cannot find a straightforward solution.

I am using text boxes in VB6 that are bound to an ADO Data Control. I cannot programatically change the value in the text box and have the bound element update the database without setting the focus to the text box. Is there a property that allows the datacontrol to see the changes to the text box without user intervention?

Thanks
 
Text1.SetFocus ?
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
SetFocus method doesn't seem to work. The only time the value is changed in the recordset is when I actually type the new value in manually.
 
Text1.Text = "A Change was made"
Adodc1.Recordset.Fields("SomeField").Value = Text1.Text
 
Thanks for the ideas. Changing the recordset directly seems to be the only surefire way to get good results.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top