Results 1 to 5 of 5
  1. #1
    frcastro is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    13

    format of text data type

    I have a cell that is the junction of a number and 4 letters.



    something like ACRT000001

    Right now it appears "ACRT1"


    How can I change thins?

    Thanks!!!!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Something along the lines of:

    "ACRT" & Format(1, "000000")

    Presumably you would substitute your field name for the 1 (and perhaps the letters as well).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,170
    Hi,

    try to concatenate the field as:
    fldMytext = fldMytext & format(fldMyNumber,"0000")

  4. #4
    frcastro is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    13
    I am using a update query

    where in the update to i am using this:

    "ACPT" & [protocolo]![nš protocolo]



    where [protocolo]![nš protocolo]
    is a number order that goes from 1 to 1000000

    Where and how do I make the changes you sugest.

    Thanks!

  5. #5
    frcastro is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    13
    DONE!!!!!


    Thanks!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-17-2010, 12:21 PM
  2. Replies: 2
    Last Post: 03-18-2010, 08:24 PM
  3. fields of type text
    By ashiers in forum Forms
    Replies: 0
    Last Post: 11-28-2008, 10:52 AM
  4. Text Box Format
    By Scott in forum Forms
    Replies: 0
    Last Post: 01-09-2008, 11:13 PM
  5. How to format text in a report
    By Kimelco in forum Access
    Replies: 1
    Last Post: 01-06-2006, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums