If txtSalesNotActive and txtSales are both on the same subform, then
Me.txtSales = DLookUp("[last_name]", "[person]", "[person_key] = '" & Me.txtSalesNotActive & "'")
If txtSalesNotActive is on the subform as you say, but txtSales is on the main form (or parent), then
Me.txtSales = DLookUp("[last_name]", "[person]", "[person_key] = '" & Me.frmProfile_person_history_subform.Form.txtSales NotActive & "'")
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
|