Partial Default Value?

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?).
 
V

vb

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
 
C

Charlie

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
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top