Code move

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eddy Scheire

    Code move

    Dear all,

    I've moved all my VB-code from one PC to another. I load a project and when
    I try to run it, it abends on a

    Mid(Date,1,2)

    with Date highlited.

    When I put this line in comment, it stops on

    Mid(variable,1, 5)

    with Mid highlited.

    Error is something like

    "Syntax error : could not load project or library"

    It looks like basic keywoards are no longer recognized. Any idea what could
    be the cause?

    Thanx in advance


  • Randy Birch

    #2
    Re: Code move

    Got to Project References, and ensure the first four items selected are (in
    this order):

    Visual Basic for Applications
    Visual Basic runtime objects and procedures
    Visual Basic objects and procedures
    OLE Automation

    --

    Randy Birch
    MVP Visual Basic

    Please respond only to the newsgroups so all can benefit.


    "Eddy Scheire" <eddy.scheire@s kynet.be> wrote in message
    news:3ffddd09$0 $1155$ba620e4c@ news.skynet.be. ..
    : Dear all,
    :
    : I've moved all my VB-code from one PC to another. I load a project and
    when
    : I try to run it, it abends on a
    :
    : Mid(Date,1,2)
    :
    : with Date highlited.
    :
    : When I put this line in comment, it stops on
    :
    : Mid(variable,1, 5)
    :
    : with Mid highlited.
    :
    : Error is something like
    :
    : "Syntax error : could not load project or library"
    :
    : It looks like basic keywoards are no longer recognized. Any idea what
    could
    : be the cause?
    :
    : Thanx in advance
    :
    :


    Comment

    • Pieter Linden

      #3
      Re: Code move

      > "Syntax error : could not load project or library"[color=blue]
      >
      > It looks like basic keywoards are no longer recognized. Any idea what could
      > be the cause?
      >[/color]
      Sounds like your library is not registered properly. Did you try
      un-registering and reregistering the library and then recompiling?

      Comment

      • Bob Butler

        #4
        Re: Code move

        "Eddy Scheire" <eddy.scheire@s kynet.be> wrote in message news:<3ffddd09$ 0$1155$ba620e4c @news.skynet.be >...[color=blue]
        > Dear all,
        >
        > I've moved all my VB-code from one PC to another. I load a project and when
        > I try to run it, it abends on a
        >
        > Mid(Date,1,2)
        >
        > with Date highlited.[/color]

        go to Project / References and see if anything is flagged as 'Missing'

        Comment

        Working...