Hi,
I have a continuous form which shows a record on each line. Further details
are available by clicking on a box which runs code to open a further form to
give more details of the record. It works well. BUT you could well have
your cursor on one record and click on the box for extra details of another.
The result is that the details of the wrong record are displayed.
To find the right record I'm using
stLinkCriteria = "[PosId]=" & Me![PosID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
I guess I need a line of code which takes me to the relevant record where
the text box was clicked.
Any ideas?
I have a continuous form which shows a record on each line. Further details
are available by clicking on a box which runs code to open a further form to
give more details of the record. It works well. BUT you could well have
your cursor on one record and click on the box for extra details of another.
The result is that the details of the wrong record are displayed.
To find the right record I'm using
stLinkCriteria = "[PosId]=" & Me![PosID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
I guess I need a line of code which takes me to the relevant record where
the text box was clicked.
Any ideas?
Comment