CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2000
    Posts
    40

    MSAccess97 and Windows2000

    Hi. I have an application that will read and write to an Access97 database. This app works when it is run on a Windows9X OS. If I ran this on a Windows2000 computer, I receive an Obeject Cannot be Create error. I have included all the Access Run-Time files to the Windows2000 computer. The application does open and have a connection to the database. The error occurs when I try to create a recordset. The Windows2000 computer has Access2000 installed and running on NTFS. Any help is greatly appreciated.


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: MSAccess97 and Windows2000

    Try to reinstall MDAC_TYP.exe on W2000. That might cause the problem

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: MSAccess97 and Windows2000

    Which Database Access Object are you using? ODBC? ADO? DAO?. If I'm not mistaken RECORDSET object is in the Data Access Object component and if you're having a problem creating it, it probably because of versioning problem on the target computer.

    -Cool Bizs

    Good Luck,
    -Cool Bizs

  4. #4
    Join Date
    Nov 2000
    Posts
    40

    Re: MSAccess97 and Windows2000

    I'm using DAO.


  5. #5
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: MSAccess97 and Windows2000

    I agree with reply from louri, try re-installing MDAC for Win2K. Do note that you do not need to have Access97 installed on target PCs. You just need the MDAC to be installed which will include the DLL needed to work with Access DB from your VB code.

    It will also give you an error if on your development PC you have DAO 3.6 (higher version) installed but on the Win2K, you only have DAO 3.5 (older version) installed.

    Also try to explicitly define the recordset object.
    dim oRs as DAO.Recordset
    set oRs = new DAO.Recordset

    Hope it helps,
    -Cool Bizs

    Good Luck,
    -Cool Bizs

  6. #6
    Join Date
    Nov 2000
    Posts
    40

    Re: MSAccess97 and Windows2000

    I ran the MDAC_TYP.exe on the Win2K machine and it will not allow me to.


  7. #7
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: MSAccess97 and Windows2000

    You can try to do the following:
    1. Re-install MDAC 2.6 (downloadable from MS website http://www.microsoft.com/data/)
    2. Use Package&Deployment wizard to pack your app and then try installing it on another Win2K machine.

    -Cool Bizs

    Good Luck,
    -Cool Bizs

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