Yes there is the InNumeric([value]) function which returns true or false based on the value you pass in. So:
if isNumeric(databaseValue) then
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.