I have a QBF form that queries a customer table by name that is entered by the user. Is there a way to make the resulting query clickable so that a form will open with the customer ID for the customer that is clicked?

For example, I query Smith and get John Smith and Joan Smith. If I then click John Smith, I want to have a form open with John Smith's CustomerID populated.

How can this be done?