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. General Programming
  3. C / C++ / MFC
  4. Problem with CDaoRecordset "Too few parameters. Expected 1"

Problem with CDaoRecordset "Too few parameters. Expected 1"

Scheduled Pinned Locked Moved C / C++ / MFC
databasec++helpquestion
2 Posts 2 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.
  • C Offline
    C Offline
    Cheickna
    wrote on last edited by
    #1

    Hi, I Use Visual C++ 6.0 and an access Database. I want to execute a SQL statement with CDaoRecordset. This error message occurs : "Too few parameters. Expected 1" when i use Open method. My SQL statement is longer than 256 characters ( about 1100 ). The problem is here it seems. If i run This query directly in Microsoft Access, it work. Is there any method to execute un SQL Statement like this in DAO ( CDaoDatabase ) ??? Thanks in advance Regards,

    C 1 Reply Last reply
    0
    • C Cheickna

      Hi, I Use Visual C++ 6.0 and an access Database. I want to execute a SQL statement with CDaoRecordset. This error message occurs : "Too few parameters. Expected 1" when i use Open method. My SQL statement is longer than 256 characters ( about 1100 ). The problem is here it seems. If i run This query directly in Microsoft Access, it work. Is there any method to execute un SQL Statement like this in DAO ( CDaoDatabase ) ??? Thanks in advance Regards,

      C Offline
      C Offline
      Carlos Antollini
      wrote on last edited by
      #2

      Show me the line.... Cheers!!!:-D Carlos Antollini.

      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