Gustav Brock
Gustav at cactus.dk
Tue Jun 10 10:49:43 CDT 2008
Hi Charlotte Nothing, except that no intMax was requested, making it very simple: http://databaseadvisors.com/pipermail/accessd/2008-June/061684.html /gustav >>> cfoust at infostatsystems.com 10-06-2008 17:25 >>> What's wrong with: If Me.TextBox1.Text.Length > intMax Then .... In the OnChange event of TextBox1? Alternatively, use the OnChange event to pass the control as an argument to a function. The function can make use of the Text property of the passed textbox, check its Text.Length and pass back a result. Charlotte Foust