The code below is being used to change focus. It was suggested by a person on the forum and I was wondering if someone could explain the use of the Dirty method and what its significance is in this code? Why would it be needed? Thank you.
Code:
Dim AddItems As Object
Set AddItems = Forms!ProductionForm!ProductionSubForm1!ProductionBatchAddItemsTabSubForm
Me.Dirty = False
AddItems.SetFocus
AddItems!ItemUsed.SetFocus