Okay, I thought of another solution.
Step 1
Open your form and create a new property, I'll call mine
data
Step 2
Add code in the INIT EVENT of the form
* Something like this...
USE c:\$temp\customer
SCATTER NAME thisform.data BLANK
* messagebox just for demo purposes
MESSAGEBOX(thisform.data.city)
* The form property has been intialized as blank.
3. Set the control source of the text field city (txtCity) to THISFORM.data.city
Once the user navigates to a record you wish to display, issue this command:
SCATTER NAME thisform.data
* messagebox just for demo purposes
MESSAGEBOX(thisform.data.city)
Jim Osieczonek
Delta Business Group, LLC