General information
Category:
Forms & Form designer
Hi Susan.
>> how can i select a certain record from a table displayed in a grid and then have the information from the same record that i just selected to appear on my form <<
If the grid and the other controls are on the same form, and th other form controls are bound to the same table as the grid is, just put
This.Parent.Refresh()
In the AfterRowColChange method.
The form will automatically keep in synch with the grid without using extra key strokess.
Of course, this will fire even if you are only tabbing thru fields of the same record in the grid. So if you like, save the current record number to a custom property of the grid in BeforeRowColChange. Then, in AfterRowColChange, check to see if the custom property = RECNO(). If not, you have changed rows and that is when you need to do your refresh.
Marcia
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only