Results 1 to 6 of 6
  1. #1
    stwalke2 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    4

    Form Button to Execute Disabled Ribbon Command

    Hi,

    I am trying to create a button on a popup form that will start a numbered or bulleted list in a textbox (memo style). Below is the "Onclick" event I have for the button (it sets the focus of the text box first).

    Code:
    Application.CommandBars.ExecuteMso ("Bullets")
    This works only if the form is NOT a popup form as onfocus of the textbox the "bulleted list" button in the ribbon becomes enabled. However, in a popup form, the button is disabled no matter what so an error occurs and no bulleted list. Is there a way to enable the command or make it so I can start a bulleted list when a button is clicked?



    And no, I don't want to have a customized ribbon...I'd rather have no ribbon and just the form with a few select commands available as buttons on the form. I've also tried the sendkeys command; it fails.

    Thanks for your help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    Your options might be:

    1. don't set form as popup

    2. use Chr(149) in the text 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
    stwalke2 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    4
    June7,

    Thank you for the suggestions. Unfortunately, that isn't a solution I can use. I want to use a popup form so I can hide the rest of Access. Now if I can do that without having to use popup, I'm good with that. Using Chr(149) doesn't get what I need.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    I have doubts the RTF tool group can be made available. Not even sure a custom ribbon could be configured with them.
    Last edited by June7; 04-05-2013 at 09:45 PM.
    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.

  5. #5
    stwalke2 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    4
    Well I appreciate the help. Any other suggestions out there? I've seen forms with "save" records and things like that but I don't think that is calling a ribbon function. The only one I really need is the Bulleted List function.

  6. #6
    stwalke2 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    4
    Anyone else have ideas for this? It seems like it would be an available feature in Access.

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

Similar Threads

  1. close button on ribbon
    By slimjen in forum Forms
    Replies: 2
    Last Post: 03-29-2013, 06:34 AM
  2. Replies: 2
    Last Post: 03-19-2012, 05:08 AM
  3. Add New Button Disabled
    By qbc in forum Forms
    Replies: 6
    Last Post: 01-19-2012, 04:34 PM
  4. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  5. Execute Command Interactively
    By zephaneas in forum Programming
    Replies: 1
    Last Post: 11-08-2008, 09:56 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