<!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> </DIV>
<DIV>>Write a procedure for the validation routine in the DataModule.
Then<BR>>call it from the OnKeyPress event in each form.</DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have about 20 forms and 10 -20 entry points
on each form, so the OnKeyEvent looks like the long way round. The database
is only 20 fields long but each form shows a particular set of graphic for
the action so the user enters the data in the correct
fields. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </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> </DIV>
<DIV><FONT size=2 face=Arial>Thanks Wallace.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial> </FONT></DIV>
<DIV><BR></DIV></BODY></HTML>