Results 1 to 3 of 3
  1. #1
    Allen Bukosky is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    2

    Building comments from a list

    My customer wants to be able to build the text in a comments field from a list of comment snippets stored in a separate table. I have a form showing several fields including the Comments field along with a list box showing the available snippets from the Snippets table, but I can't find a way to concatenate what is already in the Comments field with a selected snippet. However it works, it needs the ability to add more than one snippet (ie - each snippet is added as it is clicked(or double clicked).



    I'd prefer to stay away from VB if possible (someday I'll have to learn it).

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    To concatenate the fields into one field (hidden or visible) you can create a text field and then make it's value equal to something like:

    [Field1] & ", " & [Field 2] & ", " & [Field 3]

    This would take the value of Fields 1 - 3 and concatenate them with commas in between.

    Optionally, if you sometimes have data in Field 1 and 3 but not field 2, you could throw in an IIF statement to ignore the field if it is null, only concatenating the ones you want.

    Hope it helps.

  3. #3
    Allen Bukosky is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    2
    Ahh, but how do I get this compound string to be stored in the comments field. I've tried -on click {in the Snippets list box properties} = [comment]=[comment]& [snippet] and slight variations- but usually get an error message or it simply doesn't work

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

Similar Threads

  1. Comments History
    By stu in forum Forms
    Replies: 3
    Last Post: 11-15-2011, 06:43 PM
  2. Comments when clicking a button
    By Juan4412 in forum Programming
    Replies: 4
    Last Post: 06-23-2011, 04:34 PM
  3. Your comments on this school database system please
    By crazycat503 in forum Database Design
    Replies: 3
    Last Post: 05-24-2011, 09:28 AM
  4. Building a FAQ
    By Karin in forum Access
    Replies: 5
    Last Post: 03-07-2011, 11:26 AM
  5. Comments box
    By allykid in forum Forms
    Replies: 1
    Last Post: 07-12-2010, 08:45 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