CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Database Error

  1. #1
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Database Error

    I have a EXE file, which repairs the Access 2000 database by removing the space used by the deleted records.

    This EXE works fine. But I need to call this EXE from one more MDI. The user will enter to the MDI after logging, where I need to open the databse and check the table for user name and password. If he is successfuly, then he is allowed to work inside. In the menu of the MDI I am trying to call that EXE file. The EXE file executes properly but the database size is not reduced, if I call it from within MDI. But the same works if I run that EXE separately.


    I am using ADO. In the design time, I right click and set all the properties to access the database Access 2000 and one text box is bound to this.


    Regards,
    Shivakumar G.M.


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Database Error

    How are you calling the EXE? Is it using COM or just using the Shell statement?

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Re: Database Error

    It's using only shell statement


  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Database Error

    Strange, when using Shell, It runs like if you start it manually. One possible cause I can think of is that the database might be in use by the program that is shelling the EXE. When starting it manually, that program probably isn't started.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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

Featured