I have an on click event that checks if entered number values on my first tabbed subform are not null. I then pass the values to three other fields each on a different tabbed subform using If Then Else syntax that seems to work. When I click through the tabs after the code has finished I can see the updated values on their respective tabbed subforms. However, when I click back through the tabs or requery the record all but the first and last subform values have saved.
I have tried inserting If Me.Dirty Then Me.Dirty = False in the subform after update and on data change events as well as in the on click event. I have also tried RunCommand acCmdSaveRecord and neither seems to work.
Any help/ideas would be appreciated
Ex.
If IsNull(Me.AMT1_AF) Then
Else
Forms![SCH_ENTRY]![ENT1subform]![AMT1] = Me.AMT1_AF
End If
If IsNull(Me.AMT2_AF) Then
Else
Forms![SCH_ENTRY]![ENT2subform]![AMT2] = Me.AMT2_AF
End If
If IsNull(Me.AMT3_AF) Then
Else
Forms![SCH_ENTRY]![ENT3subform]![AMT3] = Me.AMT3_AF
End If
If IsNull(Me.AMT4_AF) Then
Else
Forms![SCH_ENTRY]![ENT4subform]![AMT4] = Me.AMT4_AF
End If
I have tried inserting If Me.Dirty Then Me.Dirty = False in the subform after update and on data change events as well as in the on click event. I have also tried RunCommand acCmdSaveRecord and neither seems to work.
Any help/ideas would be appreciated
Ex.
If IsNull(Me.AMT1_AF) Then
Else
Forms![SCH_ENTRY]![ENT1subform]![AMT1] = Me.AMT1_AF
End If
If IsNull(Me.AMT2_AF) Then
Else
Forms![SCH_ENTRY]![ENT2subform]![AMT2] = Me.AMT2_AF
End If
If IsNull(Me.AMT3_AF) Then
Else
Forms![SCH_ENTRY]![ENT3subform]![AMT3] = Me.AMT3_AF
End If
If IsNull(Me.AMT4_AF) Then
Else
Forms![SCH_ENTRY]![ENT4subform]![AMT4] = Me.AMT4_AF
End If