View Full Version : Value in Text Box/field


rupes_mahal
08-23-2001, 07:39 AM
Hi..

I have a text box called Reference. I have data to enter which all start with the letter "M". E.G. M2049, M2050 etc

How can I pre-define this text box that the letter "M" always appears.

Thank you in advance

Ruby

Liv Manto
08-23-2001, 08:58 AM
if Left(me.mytextbox, 1) = "M" then ....

rupes_mahal
08-23-2001, 01:43 PM
Liv manto....


could you please tell me more...where shall i put that code and its unfinished, wat am i suppose to put in it...

thank you in advance for your help

ruby

KevinM
08-23-2001, 01:49 PM
Use an input mask.

rupes_mahal
08-23-2001, 02:04 PM
Kevin...

how do I use the input mask...

thanks

ruby

KevinM
08-24-2001, 12:01 PM
In table design view, enter the following in the Input Mask properties...

"M"99999;0

You may need to update the field on your forms too.

HTH