Extracting Part of a Field

G

Guest

Hello All,
I am trying to set a statement to set the default value of one text box with
the last 7 digits of another. For example in field account code box the
following is diplayed: 1234567890. In the tracking code box I want, 4567890
to be the default value. I know where to put it, just not sure of the synax.
Many Thanks, Adam
 
G

Guest

Hi.

According to Access Help, the Default Value is "a value that is
automatically entered in a field when a new record is created." I don't
think this is what you want, because when a new record is created, the Field
Account Code box would be blank.

I think what you want here is an unbound text box, for which the Control
Source should be set to:
=Right([FieldName],7)
where "FieldName" is the name of your Field Account Code control.

-Michael
 

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