<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Thanks for the reply. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV>&gt;Write a procedure for the validation routine in the DataModule. 
Then<BR>&gt;call it from the OnKeyPress event in each form.</DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I have about 20 forms and 10 -20&nbsp;entry points 
on each form, so the&nbsp;OnKeyEvent looks like the long way round. The database 
is only 20 fields long but each form shows a particular&nbsp;set of graphic for 
the action so the user enters the data in the correct 
fields.&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>What I would like is to attach the validation to 
the data field in the DM. That way I can also specify a range for the entry 
which will be common to all forms.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thanks Wallace.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>&nbsp;&nbsp;</FONT></DIV>
<DIV><BR></DIV></BODY></HTML>