>I have two forms open at one time. I type in a note on the one form and close it. How can I get a text box on the remaining form to populate with the note I typed in on the form I closed. Thanks.
>
>God Bless,
>S. Dyke
Steven, it depends on many factors.
If your note goes to the table field it depends then on how you set up the textbox.ControlSource (is it a table field or a view field, which type of buffering is selected...) In general, you should put in some code which on Form.Activate makes sure that the textbox.value contains the latest change.
Depending on how you do things, it may be simple .Refresh(), or CURVAL("myField"), or view REQUERY() (in this case if you have multiple records in the view, you also need to move the record pointer to the same record after REQUERY()).
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison