This is quite easy. When you create the form make sure it has control sources that are the same as the grid. When you move the grid record it actually moves the record pointer in the database. When you open the form the record should be the same and therefore the info should be the same.
If that is not possible you have to create variables for each column and that can be a nightmare (I know).
I assumed the row, since grids display rows of data
Create a form, you might want to use the form wizard for this also. Include the fields you want, and make sure they are the same control source database as the grid, whenever the grid moves so will the form since they are tied to the same information.
There really is not much code, the record movement does not require any, and the form will have none to speak of. The only code you will have to write is the double click event code on each of the grid columns (or a bind events code) that fires the form with this code:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.