Results 1 to 8 of 8
  1. #1
    jackyoung2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    14

    Display copy and past friendly report results

    hi,

    Is it possible to display a report with multiple fields in one text box. the reason I ask is I want to be able to copy and paste multiple fields as one block of text? the reason I need this is am building a database for client testimonials, and want to generate a block of text that somebody can just copy and paste, that contains the client name, date and referral all in one block. Currently it keeps all the components in separate boxes.



    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,521
    It wouldn't be editable, but you can do:

    =[Field1] & [Field2]

    you can concatenate a space, comma or linefeed in between if desired.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jackyoung2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    14
    thanks, is it possible to run this over multiple lines, so the testimonial is on top, with the client name and date underneath?

  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
    =[Field1] & vbCrLf & [Field2]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    jackyoung2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    14
    Thanks, but I cant seem to get this to work, typing in vbCrLf doesnt seem to put a space in. Also, what do I reference in the report, the query or the table? Basically, I want the text box to look like this

    [FinalTestinmonial], [Date added]
    [candidate name], [job role], [sector],[county]

    where the names of the fields from the query results I need are as follows:

    final testimonial - Field10
    candidate name - Candidate
    job role - New Position
    sector - Vertical
    county - Countycand

    but no matter how much I play with it I cant seem to get it to work!

  6. #6
    jackyoung2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    14
    Right, scratch the above, I now have it nearly all sorted, but for some reason, the [Countycand] field, which should diplay the county name, now just displays the autokey number instead for the county it should be!

  7. #7
    jackyoung2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    14
    Just for info, the formula I am now using is:

    =[Field10] & Chr$(13) & Chr$(10) & [Candidate] & "," & [New Position] & "," & [Countycand] & "," & [Date Added]

    any ideas?

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    My apologies, the vbCrLf is only valid in VBA code. The Chr() codes are appropriate in a textbox. To your question, you reference whatever the source of the report is; the fields referenced must be in its record source. Does your query include a county name? Typically you'd link tables to get the name available, and reference the name field. If you're using a lookup field, that's likely your issue.
    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. Replies: 2
    Last Post: 03-07-2012, 08:39 AM
  2. Display results with count of 0
    By jbickl in forum Reports
    Replies: 2
    Last Post: 02-06-2012, 07:07 AM
  3. Replies: 3
    Last Post: 11-10-2010, 09:52 AM
  4. Display all results if parameter is blank
    By justifiedcandy in forum Queries
    Replies: 2
    Last Post: 09-02-2010, 03:00 PM
  5. Form to display results
    By Zholt in forum Forms
    Replies: 9
    Last Post: 05-07-2009, 10:09 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