If you want relatives to come out in a selected order, you could do something like this. Add a column to the list box for the counter, make it visible or not, as you choose.
Code:
SELECT 1 as Nbr, 'Father' AS Relation, Relative.FullName FROM tblMain LEFT JOIN tblMain AS [Relative] ON tblMain.FatherID = Relative.MainID WHERE (((tblMain.MainID)=[Forms]![Family_frm]![cboMaster])) union SELECT 2 as Nbr, 'Mother' AS Relation, Relative.FullName FROM tblMain LEFT JOIN tblMain AS [Relative] ON tblMain.MotherID = Relative.MainID WHERE (((tblMain.MainID)=[Forms]![Family_frm]!cboMaster)) union SELECT 3 as Nbr, 'Child' AS Relation, Relative.FullName FROM tblMain LEFT JOIN tblMain AS [Relative] ON tblMain.ChildID = Relative.MainID WHERE (((tblMain.MainID)=[Forms]![Family_frm]![cboMaster])) union SELECT 4 as Nbr, 'Spouse' AS Relation, Relative.FullName FROM tblMain LEFT JOIN tblMain AS [Relative] ON tblMain.SpouseID = Relative.MainID WHERE (((tblMain.MainID)=[Forms]![Family_frm]![cboMaster]))





Comment