Not sure I really understand. But here goes nothing......
FYI stuff:
You don't really need two tables to store the max weights. It is the same type of data, so have a field for "Height", a field for "MaxFemale" and a field for "MaxMale".
You should always take the time to name your controls. Is it easier to read "[Height]" or "[Text216]"?
For a text box control, the DLookup() would look like this:
(this should be one line)
Code:
=IIf([Gender]="M",DLookUp("[Weight]","tblMaleHeightWeightStandards","[Height] = " & [Forms]![frmPersonellWorksheet].[Text216]), DLookUp("[Weight]","tblFemaleHeightWeightStandards","[Height] = " & [Forms]![frmPersonellWorksheet].[Text216]))
In a query:
Code:
Max: IIf([Gender]="M",DLookUp("[Weight]","tblMaleHeightWeightStandards","[Height] = " & [Forms]![frmPersonellWorksheet].[Text216]), DLookUp("[Weight]","tblFemaleHeightWeightStandards","[Height] = " & [Forms]![frmPersonellWorksheet].[Text216]))
Change "Gender" to your field name.
I don't know what you use for male, "M" or "Male". If you use "Male", in the expression, change "M" to "Male".