Results 1 to 2 of 2
  1. #1
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Rich text field odd behavior

    Hello everyone and a Happy New Year to you all!

    I have a really strange problem that's been giving me fits for over a year. I have an estimating application that includes 3 Long Text fields, and the fields ARE LONG. Client wants them in bulleted format and wants to be able to edit as necessary. 2 of the fields "Inclusions and HVAC exclusions" work just fine. "General Exclusions" does not. It just runs on. I have everything set to Rich Text (backend tables and forms). I have tried setting the default value (in table and form) to the required formatted/bulleted text, I've tried making it an unbound field on the form, and just copying and pasting the necessary formatted text, I've bound it and tried copy/paste as well. And I have to add that it is an intermittent problem. Some estimates will print out just fine. Am I missing something obvious?



    Thank you in advance for any insite.
    Gina

  2. #2
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Maybe the problem is not the formatting of the table/form whatever, but it's the input. You could use code to insert a bullet by using a specific key, but keypress events can slow things down to the point where it becomes a problem.
    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    On Error GoTo errHandler
    
    If KeyCode =  vbKeyF# 'substitute a number you want to use
      ClipBoard_SetText Chr(149) & Chr(32)
      DoCmd.RunCommand acCmdPaste
      KeyCode = 0
    End If
    exitHere:
    Exit Sub
    
    errHandler:
    MsgBox Err.Number & ": " & Err.Description, , "messagebox title here"
    Resume exitHere
    
    End Sub
    You shouldn't have to import rtf files as data, but that is another way.
    Last edited by Micron; 12-29-2015 at 03:39 PM. Reason: commented on slow keyupress event
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 4
    Last Post: 08-07-2015, 07:49 AM
  2. Trouble with rich text format memo field
    By lawdy in forum Access
    Replies: 10
    Last Post: 03-08-2014, 08:34 PM
  3. rich text memo field
    By jedder in forum Reports
    Replies: 1
    Last Post: 05-11-2012, 02:48 PM
  4. Access 2007 Memo Field Rich Text
    By EddieN1 in forum Access
    Replies: 2
    Last Post: 08-13-2011, 08:41 AM
  5. Set format of rich text field
    By silverspr in forum Programming
    Replies: 0
    Last Post: 03-28-2011, 09:07 AM

Tags for this Thread

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