If AgeCutOff
is a text box, then AgeCutOff.value
won't actually be a number, it will be text.
If you want a number from it, look into the CInt()
function. You could also use CLng
for a greater range but, unless you're talking about the ages of thngs that live substantially longer than humans, integers up to 32,000 should suffice.