Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. OpenCurrentDatabase..HANGING!!! ...Automation MS Access 2003 [modified]

OpenCurrentDatabase..HANGING!!! ...Automation MS Access 2003 [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasehelptesting
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vuks
    wrote on last edited by
    #1

    Hi, I am using C#.NET to create an instance of MS Access 2003. I try to open my Access Report, but the Application just hangs as soon as I get to the part where I open my Database. Here is part of my code: oAccess = new Access.ApplicationClass(); //No problem if(!oAccess.Visible) oAccess.Visible = true; //No problem sDBPath = "C:\\Reporting.mdb"; oAccess.OpenCurrentDatabase(sDBPath,false, ""); //PROBLEM IT HANGS!!! // Preview the report: oAccess.DoCmd.OpenReport(sReport,Access.AcView.acViewPreview, moMissing, moMissing, Access.AcWindowMode.acWindowNormal, moMissing) My problem is that it stops on the line that attempts to open the DB AND DOES NOT CONTINUE FURTHER.Ohh by the way I wrote the same code in VB6 and it worked just fine.Please help. Vuks -- modified at 9:15 Thursday 6th July, 2006

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups