[AccessD] Restrict the number of lines in a text box.

rockysmolin at bchacc.com rockysmolin at bchacc.com
Sat Jul 5 09:28:32 CDT 2008


Couldn't you just use that code and multiply the number of characters in
one line by the number of lines?  

You'd have to adjust the routine to also count hard returns so that, if you
wanted to restric tthe text box to three lines the user can't enter four
short lines.

You'vre also got to account for different fonts having different character
widths.

Interesting problem.  Maybe you can post the solution.

Rocky


Original Message:
-----------------
From: Tony Septav iggy at nanaimo.ark.com
Date: Sat, 05 Jul 2008 06:51:11 -0700
To: accessd at databaseadvisors.com
Subject: [AccessD] Restrict the number of lines in a text box.


Hey All
Does anyone know how to restrict the number of lines in a text box?
I found some old Access97 code to restrict the numbers of characters to 
the width of the text box.

Thanks
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


--------------------------------------------------------------------
mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE






More information about the AccessD mailing list