I have a piece of code that says:
If IsNull(Me.lstClientInvestments.Column(8, SelectedItem)) Then
EntityToPass = 0
Else
For some reason though, on entries that I KNOW the value is null and should run this code it doesn't. Then it skips to this line and I get a type mismatch error:
EntityToPass = Me.lstClientInvestments.Column(8, SelectedItem)
Any advice on why it won't run that code even if it IS a null value?
If IsNull(Me.lstClientInvestments.Column(8, SelectedItem)) Then
EntityToPass = 0
Else
For some reason though, on entries that I KNOW the value is null and should run this code it doesn't. Then it skips to this line and I get a type mismatch error:
EntityToPass = Me.lstClientInvestments.Column(8, SelectedItem)
Any advice on why it won't run that code even if it IS a null value?