I have a report that has a re-submittal date field. It is from a form that has up to 5 re-submittal date entries and they way they work is one field is visible from the beginning. If a date is entered into that field, when the user comes back into the form a second re-submittal date field will appear (disabled) with a check box next to it. Checking the box will enable this date field and disable all others. This is set to work with up to 5 date fields.
My problem is I want to show the most recent re-submittal date field, or the date checked, or the one enabled. They should all be the same thing. I've tried to put some code into the report but so far it is not working.
Private Sub Report_Current()
If Forms!sfrmSubDetStatus.txtResubmittalDate1.Enabled = True Then
Me.ResubmittalDate1.Value = Forms!txtResubmittalDate1.Value
ElseIf Forms!sfrmSubDetStatus.txtResubmittalDate2.Enabled = True Then
Me.ResubmittalDate1.Value = Forms!txtResubmittalDate2.Value
ElseIf Forms!sfrmSubDetStatus.txtResubmittalDate3.Enabled = True Then
Me.ResubmittalDate1.Value = Forms!txtResubmittalDate3.Value
ElseIf Forms!sfrmSubDetStatustxtResubmittalDate4.Enabled = True Then
Me.ResubmittalDate1.Value = Forms!txtResubmittalDate4.Value
ElseIf Forms!sfrmSubDetStatus.txtResubmittalDate5.Enabled = True Then
Me.ResubmittalDate1.Value = Forms!txtResubmittalDate5.Value
End If
End Sub
I'm guessing there's a way to do this, and I'm probably just not doing something right.