App error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • igop
    New Member
    • Feb 2022
    • 1

    #1

    App error

    Hi
    There is a simple task, you need to run the access 2003 database on access 2019. After the conversion, before starting the application, I get 2 errors
    5: CM_replicator.C lass_Initialize : Invalid procedure call or argument
    and
    91: CM_replicator.G et_replication: Object variable or With block variable not set.
    The question is how to fix them?

    I found these two parameters in Class Modules -> CM_replicator
    Code:
    Public Property Get replication() As Boolean
    On Error GoTo exception
    
    replication = datadb.Properties(REPLICATION_PROCEED)
    Exit Property
    
    exception:
    If Err.Number = PROPERTY_NOT_FOUND Then
        createProperties
        Resume
    Else
        MsgBox Err.Number & ": CM_replicator.Get_replication: " & Err.DESCRIPTION, vbOKOnly, "Error!"
    End If
    End Property
    Code:
    exception:
    MsgBox Err.Number & ": CM_replicator.Class_Initialize: " & Err.DESCRIPTION, , "Error!"
    End Sub
    Thanks
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32669

    #2
    How to fix?

    Well, start by compiling the project. When it reports errors then look more closely at what's reported and where it's reported in your code.
    5: CM_replicator.C lass_Initialize : Invalid procedure call or argument
    This indicates an error in your code found within the Class_Initializ e method. You include other code but not that. Think about including the code the error points to.

    Let's do one issue at a time.

    Comment

    • cactusdata
      Recognized Expert New Member
      • Aug 2007
      • 224

      #3
      Access 2003 was the last version supporting replication. That may be the cause for your trouble.

      Comment

      • isladogs
        Recognized Expert Moderator Contributor
        • Jul 2007
        • 483

        #4
        This link may be helpful Replication removal

        Comment

        Working...