I am new to vba so still learning and reading up.
I currently utilize the below. This works fine however when i click new records in the split form view or go to next record if the Y is met the first time all records after that are invisible until i go back to the record i changed and alter it to = "n". Is there some sort of reset so that the fields are initially availble for new records? I have tried an after event on form load etc etc to no luck. I am open to suggestions or what I am missing please keep in mind my experience is not great but working on it.
Private Sub ComboStreetDirectoryWindArea_BeforeUpdate(Cancel As Integer)
If Me.ComboStreetDirectoryWindArea = "Y" Then
Me.ComboOptOutFormInFile.Visible = False
Me.ComboOptOutFormInFile = "N/A"
Me.ComboUWDocumentException.Visible = False
Me.ComboPolicyholderIndividualEntity.Visible = False
Else:
Me.ComboOptOutFormInFile.Visible = True
Me.ComboUWDocumentException.Visible = True
Me.ComboPolicyholderIndividualEntity.Visible = True
End If
End Sub
I currently utilize the below. This works fine however when i click new records in the split form view or go to next record if the Y is met the first time all records after that are invisible until i go back to the record i changed and alter it to = "n". Is there some sort of reset so that the fields are initially availble for new records? I have tried an after event on form load etc etc to no luck. I am open to suggestions or what I am missing please keep in mind my experience is not great but working on it.
Private Sub ComboStreetDirectoryWindArea_BeforeUpdate(Cancel As Integer)
If Me.ComboStreetDirectoryWindArea = "Y" Then
Me.ComboOptOutFormInFile.Visible = False
Me.ComboOptOutFormInFile = "N/A"
Me.ComboUWDocumentException.Visible = False
Me.ComboPolicyholderIndividualEntity.Visible = False
Else:
Me.ComboOptOutFormInFile.Visible = True
Me.ComboUWDocumentException.Visible = True
Me.ComboPolicyholderIndividualEntity.Visible = True
End If
End Sub