Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Box Character counter

Status
Not open for further replies.

trolldude

Technical User
Apr 29, 2004
14
0
0
GB
Hi

Could anyone tell me if there is a way to add a character counter to a form text box to indictae to the user how many characters they have left to enter?
I am using Microsoft Access which has the 255 character limit and regularly get comments from users complaining about inputed text being cut off mid word.

Many Thanks

Michael
 
if you want to do it in CF you would check the length of the field before you save it to the database.

<cfif len(form.comments) gt 255>
hey this is too long
<cfelse>
insert into query
</cfif>

Beware of programmers who carry screwdrivers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top