Results 1 to 3 of 3

Thread: method '`' of object '`' failed

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Mumbai (India)
    Posts
    8

    Question method '`' of object '`' failed

    Hi,

    I am facing a problem.
    I have installed my database application on a client machine .
    The application works fine for some time (1 to 2 weeks) after which it crashes down saying
    method '`' of object '`' failed
    I have resolved this issue by installing vb on clients machine but the same problem reoccured after successfully running for a week .

    Can anyone help as to what might be the cause of such an error.

    Thanks,

    dr_panicker

  2. #2
    Hyperactive Member csar's Avatar
    Join Date
    Mar 2002
    Location
    Siam
    Posts
    288
    I'm not sure for your object, but I'd an experience about Excel Object. I think it's occured because version conflict or else.

    Fortunately, I'd solved this problem by Lated-bind variable declaration.

    old code
    VB Code:
    1. Dim oAppExcel AS Excel.Application
    2. Dim oExcelSh AS Excel.WorkSheet
    3. Dim oExcelWK AS Excel.WorkBook

    to new code
    VB Code:
    1. Dim oAppExcel AS Object
    2. Dim oExcelSh AS Object
    3. Dim oExcelWK AS Object

    and remove MS Excel Object type library from Reference
    Don't leave it till tomorrow, Do It Now!
    5361726176757468204368616E63686F747361746869656E

  3. #3
    Banned
    Join Date
    Jul 2003
    Location
    New delhi
    Posts
    143
    re install the vb on the clinet machine and then create the setup on that machine.

    after loading the new set up then remove the visual basic.
    it sove the problem

    Biswajit das

Posting Permissions

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



Click Here to Expand Forum to Full Width