I have a form called 'MainOpen' which is basically just a list of all the records in the database. I have it set up so when you double click the name field of the list a new form will open with more detailed info about that specific record. For some reason when you double click the name the new form opens behind the 'MainOpen' form which then you have to minimize that form to click the new form and bring it to the front. Why will it not open in front of the 'MainOpen' form?
Here is the code I have for the double click event on the name(dba) field:
Private Sub DBA_DblClick(Cancel As Integer)
On Error GoTo Err_cmdEdit_Click
DoCmd.OpenForm "MainOpen", , , "RecNo = " & Me!RecNo
Exit_cmdEdit_Click:
Exit Sub
Err_cmdEdit_Click:
MsgBox Err.Description
Resume Exit_cmdEdit_Click
End Sub
Here is the code I have for the double click event on the name(dba) field:
Private Sub DBA_DblClick(Cancel As Integer)
On Error GoTo Err_cmdEdit_Click
DoCmd.OpenForm "MainOpen", , , "RecNo = " & Me!RecNo
Exit_cmdEdit_Click:
Exit Sub
Err_cmdEdit_Click:
MsgBox Err.Description
Resume Exit_cmdEdit_Click
End Sub