Results 1 to 2 of 2
  1. #1
    excellenthelp is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Mar 2014
    Posts
    93

    FormFontInfo Returns Compile Error

    When I compile, it directs me to:
    Code:
    Public Function ShowFontDialog() As BooleanDim f As FormFontInfo
        
    ' Set some Defaults for the Font Dialog
        With f
          .color = m_ForeColor
          .height = m_FontSize '12
          .Weight = m_FontWeight
          .Italic = m_FontItalic
          .UnderLine = m_FontUnderline
          .Name = m_FontName '"Arial"
        End With
        
    ' Call the Font Dialog
    blRet = DialogFont(f)
    If blRet Then
        ' Copy users selections over to
        ' our class vars
        With f
            m_FontName = .Name
            m_FontSize = .height
            m_FontWeight = .Weight
            m_FontItalic = .UnderLine
            m_FontUnderline = .UnderLine
        End With
    End If
    End Function
    The red hightlight is where it directs me and states "User type not defined". I have a 64-bit system and Access 2010 and the database is in Access 2007 format. What could be wrong?



    Thanks for the help... =)

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Dont define it as formfontinfo (no such thing)
    just say:
    dim f

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

Similar Threads

  1. Replies: 7
    Last Post: 07-24-2013, 02:01 PM
  2. Compile Error: Syntax Error in DoCmd.RunSQL Statement
    By Evilferret in forum Programming
    Replies: 1
    Last Post: 08-27-2012, 12:32 PM
  3. Replies: 2
    Last Post: 06-23-2012, 11:59 PM
  4. Replies: 7
    Last Post: 06-08-2012, 09:55 PM
  5. Replies: 6
    Last Post: 09-28-2011, 09:20 PM

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