Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2003
    Location
    Jacksonville, North Carolina, USA
    Posts
    173
    Thanks
    0
    Thanked 0 Times in 0 Posts

    AutoNumber field (2003/11.6566.8122)

    I have an autonumber field however I need to add "HD-" as leading characters to the autonumber. How best can I accomplish this?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: AutoNumber field (2003/11.6566.8122)

    Leave the AutoNumber field itself as it is, but set the Format property (in the table, and/or in queries, forms and reports) to the custom format
    <code>
    "HD-"0
    </code>
    This will not change the underlying values, only the way they are displayed and printed. If you really need the concatenated values, you can create a calculated column in a query. Say that the AutoNumber field is named ID. The calculated column could look like this:
    <code>
    HDID: "HD-" & [ID]</code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •