>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 when i hit the enter key or when i double-click the mouse? for now, the information from the grid will only appear correctly in my form after i have selected it twice. i'm using the object oriented programming approach. i will be grateful to anyone who can help me solve this problem.
Hmmm...sounds like maybe you need to do a
grid.setfocus
when you enter the form. Also, note that when you're in a grid cell (textbox), the Enter will fire the Click, not the dblclick, so you need do deal with that. Also, you'll need the code in each column lest the user arrow/mouse click around in the grid. You might want to use the Keypress to capture Enter and fire the Dblclick, something like that. A couple ideas, anyway...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.