Trying to change a Font Size

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Trying to change a Font Size

    Good Morning,
    I'm trying to change a Fontsize after clicking a menu Item. The user
    selects one of five options and it updates a SubForm. After Updating the
    SubForm, I would like the font size to change as a visual cue. I have
    copied the script below. I have it broke into two subs. Access kicks out
    an error that reads: The expression On Click you entered as the event
    proprty produced the following error: Member already exists in an object
    module from which this object module derives.

    Any help would be appreciated.

    Private Sub MetNav_Click()
    Me.SubMenu.SourceObject = "Menu-MetNav"
    End Sub


    Private Sub MetNav()
    If Me.SubMenu.SourceObject = "Menu-MetNav" Then
    Me.MetNav.FontSize = "16"
    End If

    End Sub


    Joseph Udell Guest

  2. Similar Questions and Discussions

    1. How to change the font, the font size, and color text
      How to change the font, the font size, and the color for a selected text in C++. David
    2. Can't change font size!?
      Relatively simple HTML page - font size was VERY small, yet no matter what I do to try & change it, it always reverts back to 9pt. What could be...
    3. Change Font Size
      Change Font Size, and bolt and move typed text Thanks for your help russ
    4. how to change font size from pod
      I'm trying to determine the pod codes I need to generate the string <font size="-1">&reg;</font> in my html. I've determined that I can get the...
    5. -How to change font size in php?
      Hi Can someone please provide the proper php syntax for changing the font size? Below is an example in plain English so you'll understand the...
  3. #2

    Default Re: Trying to change a Font Size

    Joseph:

    It appears that you have a Sub named "MetNav" AND a Control named
    "MetNav". When I set up a sample form like that, I get the error you
    describe.

    So: rename MetNav().

    -Matt


    On Tue, 8 Jul 2003 07:57:07 -0500, "Joseph Udell"
    <udellj@eglin.af.mil> wrote:
    >Good Morning,
    > I'm trying to change a Fontsize after clicking a menu Item. The user
    >selects one of five options and it updates a SubForm. After Updating the
    >SubForm, I would like the font size to change as a visual cue. I have
    >copied the script below. I have it broke into two subs. Access kicks out
    >an error that reads: The expression On Click you entered as the event
    >proprty produced the following error: Member already exists in an object
    >module from which this object module derives.
    >
    >Any help would be appreciated.
    >
    >Private Sub MetNav_Click()
    > Me.SubMenu.SourceObject = "Menu-MetNav"
    >End Sub
    >
    >
    >Private Sub MetNav()
    > If Me.SubMenu.SourceObject = "Menu-MetNav" Then
    > Me.MetNav.FontSize = "16"
    > End If
    >
    >End Sub
    >
    Matthew Sullivan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139