Traingamer,
The problem is in moving to the correct record on the form. A query-by-form calls another form showing the hits. The user should scroll to the desired record and click the Exit button. Following is the code from the exit button which is supposed to return you to the original form with the selected record displayed:
Private Sub Btn_Select_and_Exit_Click()
Dim str_DESIGNATN As String
str_DESIGNATN = Forms.Frm_Show_Criteria_Results.DESIGNATN
Dim rst As Dao.Recordset
Set rst = Forms.Frm_Benchmarks.RecordsetClone
rst.FindFirst "[DESIGNATN] = " & str_DESIGNATN
Forms.Frm_Benchmarks.Bookmark = rst.Bookmark
DoCmd.Close
End Sub
Above I tried to create a recordset identical to the one in the main form, move to the correct record there, and then use the bookmark function to move to the same record on the screen form. I'm getting a "Data type mismatch in criteria expression" error. If I can move to the record on the form based on the variable str_DESIGNATN, I won't need the recordsetclone or bookmark functions.
I hope this makes it clearer.
Thanks,
HCEONETMAN