Results 1 to 3 of 3
  1. #1
    devcon is offline Novice
    Windows 7 Access 2010 64bit
    Join Date
    Jan 2010
    Posts
    24

    Carriage return

    I’ve one query with fields 'description' and 'comment'.



    I need to concatenate the two fields in one 'details'.
    Then look in the table 'List' with one field 'fWrap' and if the field 'Details' contain the one or more 'fWrap' to create a carriage return for each 'fWrap'.
    Actually I use the following expression, but look only the 'comment' field and not the description.

    Code:
    Details: IIf(DCount("[fWrap]","List","[fWrap] Like '*" & Left([Comment],2) & "*'"),[Description] & Chr(13) & Chr(10) & [Comment],[Description] & " " & [Comment])
    Any suggestion please?

    Thank you in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This has been addressed in other threads.

    https://www.accessforums.net/reports...lly-25480.html

    https://www.accessforums.net/reports...ble-29972.html

    DCount count records in a table, not how many times a string of characters is within another string.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    devcon is offline Novice
    Windows 7 Access 2010 64bit
    Join Date
    Jan 2010
    Posts
    24
    I'm sorry I forgot your answer.
    I solve the problem.
    Thank you and I wish you Happy New Year.

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

Similar Threads

  1. Replace function adding in unwanted carriage return
    By timmygrover in forum Queries
    Replies: 10
    Last Post: 07-02-2012, 11:58 AM
  2. Replies: 1
    Last Post: 02-08-2012, 04:44 PM
  3. Carriage return in a CSV file
    By btidwell3 in forum Import/Export Data
    Replies: 1
    Last Post: 09-09-2011, 05:19 PM
  4. MySQL Linked Tables - Carriage Return
    By warrenk in forum Access
    Replies: 1
    Last Post: 03-28-2010, 01:56 AM
  5. How to force carriage return between strings?
    By Divardo in forum Reports
    Replies: 1
    Last Post: 05-21-2009, 10:50 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