parry
18-09-2002, 07:53 PM
Hi Nigel, you will first need to do an if statement using IsNumric to see if its a number or not.
Example, with error produced and focus turned to invalid field
If IsNumeric(FieldName) = false then
msgbox "Must be numeric"
FieldName.SetFocus
exit sub
else val(FieldName)
end if
cheers
Parry
Example, with error produced and focus turned to invalid field
If IsNumeric(FieldName) = false then
msgbox "Must be numeric"
FieldName.SetFocus
exit sub
else val(FieldName)
end if
cheers
Parry
