Changing a field display

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

Hopefully this is an easy question. I have a account field, all accounts
have an X in front of them (ex. X4987). On my report I would like to display
the number without the X. Is this possible? Thanks!

James O'Donnell
 
If all accounts have an "X" as the first character, you can use:
Mid([AccountField],2)
 
James said:
Hopefully this is an easy question. I have a account field, all accounts
have an X in front of them (ex. X4987). On my report I would like to display
the number without the X. Is this possible?


Set the text box's control source expression to:

=Mid(accountfield, 2)

Note that it is critical that the text box's name be
different from the field name (e.g txtaccountfield)
 
Thanks to both of you. Worked like a charm!

Marshall Barton said:
Set the text box's control source expression to:

=Mid(accountfield, 2)

Note that it is critical that the text box's name be
different from the field name (e.g txtaccountfield)
 

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

Back
Top