M
Mike Revis
Hi Group
Access 2000 winxppro
Why is "Null" not "Less than 1"?
My field [QtyLabel] is number data type.
When the form opens on a new record the field has a zero in it. Normal
right?
My command button to preview the report has this
If [QtyLabel] < 1 then
msgbox etc...
Me.QtyLabel.setfocus
Else
DoCmd.OpenReport etc...
End If
As long as the field has a zero in it this works.
If I delete the zero (creating a null condition, I think) then I get an
error opening the report.
If I use
If IsNull(QtyLabel) or [QtyLabel] < 1 then etc...
It works under either condition.
I think I know that "Null" is "nothing". It is not <1 because it is nothing.
As always any thoughts, comments or suggestions are welcome.
Mike
Access 2000 winxppro
Why is "Null" not "Less than 1"?
My field [QtyLabel] is number data type.
When the form opens on a new record the field has a zero in it. Normal
right?
My command button to preview the report has this
If [QtyLabel] < 1 then
msgbox etc...
Me.QtyLabel.setfocus
Else
DoCmd.OpenReport etc...
End If
As long as the field has a zero in it this works.
If I delete the zero (creating a null condition, I think) then I get an
error opening the report.
If I use
If IsNull(QtyLabel) or [QtyLabel] < 1 then etc...
It works under either condition.
I think I know that "Null" is "nothing". It is not <1 because it is nothing.
As always any thoughts, comments or suggestions are welcome.
Mike