Please let us know what code you are using to find the record that you click on.
In my webspeed programs, I use the ROWID to find the record that I want. When you click on the record that you want, submit the ROWID of the record and use this to retrieve the correct record.
Depending on how you are displaying the records and then selecting it, this can be done in several ways.