CPGDeveloper
Board Regular
- Joined
- Oct 8, 2008
- Messages
- 190
I want to change the value of a combo box on a main form based on the update of a combo box on a subform. I have the following:
Private Sub cmbSubCombo_AfterUpdate()
If Me.SubCombo.Value = 1 Then
Me.Parent!cmbMainCombo.Value = 1
Me.Parent!cmbMainCombo.Locked = True
If Me.Parent.Dirty Then
Me.Parent.Dirty = False
Me.Parent.Refresh
End If
End Sub
I keep getting the 'Write Conflict' Warning. I thought the Me.Dirty sequence would take care of that -- perhaps I'm missing something?
Private Sub cmbSubCombo_AfterUpdate()
If Me.SubCombo.Value = 1 Then
Me.Parent!cmbMainCombo.Value = 1
Me.Parent!cmbMainCombo.Locked = True
If Me.Parent.Dirty Then
Me.Parent.Dirty = False
Me.Parent.Refresh
End If
End Sub
I keep getting the 'Write Conflict' Warning. I thought the Me.Dirty sequence would take care of that -- perhaps I'm missing something?
Last edited: