Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One Form to Another
Message
 
To
02/12/1999 14:10:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00298054
Message ID:
00298114
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform