Hello All,
I have a form that has a text box that if left blank, untouched, should be read as an error to the user.
For example. They must enter a tail number in this block if they entered a flight time for that tail number.
My problem arises when in my code I do this.
If me.txtEcoTime.value > 0 and me.txtEcoStar.value = Null then (slap the user to enter a tail number setting focus to that offending block)
Ok this doesn't work for some reason. I've watched it and Access sees that txtEcoStar = Null but when I do this check it could careless. What am I missing or doing wrong on this one?
I have a form that has a text box that if left blank, untouched, should be read as an error to the user.
For example. They must enter a tail number in this block if they entered a flight time for that tail number.
My problem arises when in my code I do this.
If me.txtEcoTime.value > 0 and me.txtEcoStar.value = Null then (slap the user to enter a tail number setting focus to that offending block)
Ok this doesn't work for some reason. I've watched it and Access sees that txtEcoStar = Null but when I do this check it could careless. What am I missing or doing wrong on this one?