Hi
have a query
SELECT tblDeceased.GraveID, tblDeceased.Mlink, tblDeceased.Plot, tblDeceased.GraveNo, tblDeceased.Forenames, tblDeceased.Surname, tblDeceased.Age, tblDeceased.YearOfDeath
FROM tblDeceased
WHERE (((tblDeceased.YearOfDeath) Like "*" & [Enter a Year Of Death]));[/CODE]
this works well but if someone inputs a letter rather than a number nothing comes ups in the related form.
To make it tidier thought it would be nice if a Message box came up saying - "only numbers are permitted"
research on the web found me this code snippet
Code:
Sub CheckError()
On Error GoTo Handler:
Exit Sub
Handler:
MsgBox ("Not a number")
End Sub
The above code is VBA
Is it possible to add error checking to a query design? or do I convert the query to VBA, if the latter is there an easy way to convert the query to VBA?
thanks
Ian