[AccessD] Set max no of chars in a textfield

paul.hartland at fsmail.net paul.hartland at fsmail.net
Fri Jan 5 05:05:13 CST 2007


Sander,

Would something like this work for you (put in the KeyUp event of the text box)
If Len(Text0.Text) > 250 Then SendKeys Chr(8)

Just off top of my head....

Paul 







Message Received: Jan 05 2007, 10:58 AM
From: "Sad Der" 
To: "Access Developers discussion and problem solving" 
Cc: 
Subject: Re: [AccessD] Set max no of chars in a textfield

It isn't bound...

Sander

----- Original Message ----
From: Gustav Brock 
To: accessd at databaseadvisors.com
Sent: Friday, January 5, 2007 11:29:07 AM
Subject: Re: [AccessD] Set max no of chars in a textfield

Hi Sander

If the textbox is bound to a table field with a max. text size of 250, that should happen automatically.

/gustav

>>> accessd666 at yahoo.com 05-01-2007 08:55 >>>
Hi group,

I need to set an input mask for a textfield. The textfield is 250 long.
Is it possible to set a range e.g.:
Input mask: C(250)

This should mean a user can enter every char for a max length of 250.

Hope this makes sence.

Regards,

Sander

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




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com





Paul Hartland
paul.hartland at fsmail.net
07730 523179


More information about the AccessD mailing list