First, though, I would recommend copying the device.qbe.g form that you're using in your virtual join and use the copy instead, because we're going to be making some changes to it. Let's call it "contact.device.vj"
Use that as the subform used in your virtual join.
Then, edit the "contact.device.vj" form in Form Designer. Select the table, and in the Properties window, you'll see a "Double-Click Button ID" field and a "Double Click Field" field. In the "Double-Click Button ID" field, put 8 (that's the button for "Find") and in the "Double-Click Field" field, put "logical.name" (the unique field in the device table). Then save this form.
Then, you need to edit your link record for the contacts table to add a link for this virtual join.
Add the following line in the "contacts" link record:
Source Field Name: logical.name Target File Name: device Target Field Name: logical.name Add Query: $query Comments: VJ Only