Results 1 to 3 of 3
  1. #1
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402

    Automatic Carriage return in memo feild after button click

    Hi Guys



    I have a form called "WorkorderDetails" that when opened is not editable this form has a button called "EditComment" that when clicked unlocks the "comments" box and then moves the focus to the comments box so that users can add additional details.

    this works really well, but what I would like to do is this

    when the button is clicked unlock the comments box then move the focus to the comments box and then move the cursor to the top of the comments box, then create a new Carriage return so that additional text is always written top to bottom.

    is this possible?

    the comments box is a memo field

    Steve

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,736
    I would recommend a slightly different set up. Have a Comments table that allowed multiple records(comments). This way you could include CommentDate, CommentBy, CommentText fields and relate these to whatever record you need. Each comment would be individually accessible/retrievable.

    You should opt for WorkDetails ----->Comments ( a 1 to Many relationship)

    I do not think your approach of multiple comments in 1 field would be flexible. You can add a vbCRLF to any text for formatting, but I would suggest it is not a good strategy.

  3. #3
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi Orange

    many thanks for getting back

    that's a much better idea, not sure why I didn't think of that so will go down that route
    many thanks again


    Steve

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

Similar Threads

  1. Replies: 6
    Last Post: 01-11-2013, 11:33 AM
  2. Carriage return
    By devcon in forum Queries
    Replies: 2
    Last Post: 12-28-2012, 02:56 AM
  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