RunTime Error 2455 in Access 2000

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vladislav Moltchanov

    RunTime Error 2455 in Access 2000

    Any idea, what could be reason for the following effect.
    Code developed in acc97 generates RunTime Error 2455 in Access 2000:
    claiming the Name reference is wrong:
    ctlLabel.Name

    In the SUB:
    Sub SymSizes(frm As Form, strSymbol As String, _
    Optional intFontSize As Integer, Optional intFontName As String, _
    Optional intFontweight As Integer)

    Dim ctlLabel As Control
    Set ctlLabel = CreateControl(f rm.Name, acLabel, , "", _
    String(10, strSymbol), _
    100, 100)
    If (intFontSize > 0) Then
    ctlLabel.FontSi ze = intFontSize
    ctlLabel.FontNa me = intFontName
    ctlLabel.FontWe ight = intFontweight
    End If

    ctlLabel.SizeTo Fit
    intSymWi = ctlLabel.Width / 10
    intSymHe = ctlLabel.Height

    DeleteControl frm.Name, ctlLabel.Name
    End Sub

    Thanks


Working...