Results 1 to 4 of 4
  1. #1
    AndrewsPanda is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    22

    Issues with Text Box formats and expressions

    I am creating a letter template in the report section of Access. My first problem is even though I am updating the "Format" of the field to display a certain thing and updating this across all forms and reports. When I put in the following expressions the information reverts back to a default format.



    Eg. For date I have chosen Long format. (Friday, 7th October 2011). It is showing up correctly on the form. However on the report it is showing up as 7/10/2011.
    I am using the expression =Trim([Course Date]) & "."

    Second issue:

    How do I have normal text, then insert an expression like the one above and continue typing in the one text box.

    The course date is =Trim([Course Date]) & "."

    The course date is Friday, 7th October 2011.

  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,521
    You shouldn't need the Trim function, as there wouldn't be any spaces in a date/time field. If that doesn't get your default format back, use the Format() function, with the appropriate arguments:

    ="The course is on " & Format([Course Date], "Long Date") & "."

    Check out the Format function in help for a more complete description of what you can do for formats.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AndrewsPanda is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    22
    Once again thank you so very much for your help. I have created it now and it works great. The project is almost done =)

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problemo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Currency/text display issues
    By Akazuba in forum Access
    Replies: 3
    Last Post: 04-20-2011, 07:51 AM
  2. Queries; need assistance changing formats
    By 9944pdx in forum Queries
    Replies: 4
    Last Post: 01-28-2011, 05:56 PM
  3. two tables, different field formats, need to search
    By bairdgbaird in forum Queries
    Replies: 3
    Last Post: 09-23-2010, 08:50 AM
  4. Replies: 2
    Last Post: 08-27-2010, 10:11 AM
  5. Queries that Check field formats
    By mojers in forum Queries
    Replies: 3
    Last Post: 05-02-2010, 07:39 AM

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