Partial Default Value?

  • Thread starter Thread starter Charlie
  • Start date Start date
C

Charlie

I have a form field in which the input is always a six-
digit number preceeded by the letter "P". What is the
proper expression for setting the default value so that
the "P" appears with the insertion point behind it (so
that when I tab to this field I can just type the number
without having to type the letter repeatedly).

This seems like it should be a no-brainer (what can I
say?).
 
In the AfterUpdate event of the field in question put the
following code

txtField.value = txtField.value + "P"
if you want "P" to prefix the value switch the places.

HTH
vb
 
Thanks!
-----Original Message-----
In the AfterUpdate event of the field in question put the
following code

txtField.value = txtField.value + "P"
if you want "P" to prefix the value switch the places.

HTH
vb
.
 
Back
Top