Hi,
I wrote some VBA code which looks at a value in a textbox, and if it's null it will display a blank line.
However, it doesn't work properly with null values, only if I substitute actual values, which I want to avoid if at all possible.
Here's the code:
Are there special considerations I should make with null values or a workaround? Again, it works with anything other than a null value, but a null value is what I need it to work for.
Thanks for looking at this!
I wrote some VBA code which looks at a value in a textbox, and if it's null it will display a blank line.
However, it doesn't work properly with null values, only if I substitute actual values, which I want to avoid if at all possible.
Here's the code:
Code:
If Me.Year = Null Then
Me.Year.Visible = False
Me.lnYear.Visible = True
Else
Me.lnYear.Visible = False
End If
Are there special considerations I should make with null values or a workaround? Again, it works with anything other than a null value, but a null value is what I need it to work for.
Thanks for looking at this!
