I have 3 forms and one subform. Form1 is for current clients, Form2 is for old clients and Form3 holds orders of both current and old clients. The subform shows some fields from the orders form and is on both Forms 1 & 2.<br><br>A click on the OrderID (on the subform) takes the user to Form3 and to that particular order.<br><br>My problem: I can't figure out how to ignore Form1 if the info is asked for from Form2 and vice versa. Here's what I've got so far but of course it doesn't work. It asks for the form that isn't open. I've tried If, Else etc and have failed.<br><br>Private Sub OrderID_Click()<br>Dim DocName As String<br>Dim LinkCriteria As String<br> <br> DocName = "frmOrders"<br> LinkCriteria = "[OrderID] = Forms![Form1]! [frmOrdersSub]![OrderID]"<br> DoCmd.OpenForm DocName, , , LinkCriteria <br> LinkCriteria = "[OrderID] = Forms![Form2]![frmOrdersSub]![OrderID]"<br> DoCmd.OpenForm DocName, , , LinkCriteria<br> <br>End Sub<br><br>Help very much appreciated.<br><br>JMM<br><br>