Article ID: 112747
Article Last Modified on 1/18/2007
Name: EmployeeIDOrderID
ControlSource: =[EmployeeID] & [OrderID]
NOTE: In Microsoft Access version 2.0, there is a space in the
[Employee ID] and [Order ID] fields.
Next, add the following field to the query that the subform is based
on:
EmployeeIDOrderID: [Employee ID] & [Order ID]
Then, link the main form and the subform on the concatenated field
rather than on the two individual fields. The subform properties might
look as follows:
LinkChildFields: EmployeeIDOrderID
LinkMasterFields: EmployeeIDOrderID
Because Microsoft Access only has to compare one criteria to return
the subform's recordset, the subform's performance should improve.
Additional query words: speeding slow optimize
Keywords: kbinfo kbusage KB112747