Here's how I understand what you want......
You have a form with a sub-form in which you enter a list of parts. You want the default brand of the new record to be the same brand as the last part entered.
If this is correct, here's how I would do it:
Open the sub-form in design view, set the combo-box AfterUpdate event and the form OnCurrent event to [Event Procedure].
In the form's code module, declare a variable in the General Declarations area.
Dim DefaultBrand as string
In the combo box AfterUpdate event, set the variable to the brand just entered:
Private Sub cboBrand_AfterUpdate()
DefaultBrand = cboBrand
End Sub
In the Form OnCurrent event, set the combo box to the last brand entered if the form is on a new record.
Private Sub Form_Current()
If Form.NewRecord Then
cboBrand = DefaultBrand
End If
End Sub
_________
Rott Paws
...It's not a bug. It's an undocumented feature!!!