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. Using ADOX to chnage an MS Access query definition

Using ADOX to chnage an MS Access query definition

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netdatabasequestion
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.
  • M Offline
    M Offline
    Mack Ait Aoudia
    wrote on last edited by
    #1

    View a printable version of this message! Hi, I'm trying to change an MS Access query definition using ADOX in my ASP.NET 2.0 c# web site. Here is my function: public void ModifyQueryXDateFilter( string strConn, string strQryName, string strSQL) { ADOX.Catalog catDB = new ADOX.Catalog(); ADODB.Command cmd = new ADODB.Command(); catDB.ActiveConnection = strConn; cmd = (ADODB.Command) catDB.Procedures[strQryName].Command; cmd.CommandText = strSQL; catDB.Procedures[strQryName].Command = cmd; catDB = null; } the line: catDB.ActiveConnection = strConn; doesn't work. I get a typically microsoft error that means every thing except the right thing: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. Can anyone help with this?

    Just Relax And Keep It Simple.

    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