Results 1 to 3 of 3

Thread: Database Error: Too few parameters. Expected 5

  1. #1
    Join Date
    Aug 2009
    Posts
    51

    Database Error: Too few parameters. Expected 5

    I am getting the below error message when I fire a query to the database. Here is the error:

    Database Results Error
    Description: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 5.
    Number: 0x80040E10
    Source: Microsoft OLE DB Provider for ODBC Drivers
    I am trying to figure this out but not getting why this error appears. Do you know why this error message is coming?

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Database Error: Too few parameters. Expected 5

    The "too few parameters" error appears when number of data fields are less as compared to the fields that is expected in the database or in the result. Make sure the number of parameters is present and at proper places. This is very common problem with wrong names or misspelled words.

  3. #3
    Join Date
    Nov 2008
    Posts
    1,054

    Re: Database Error: Too few parameters. Expected 5

    You receive the above error message if you do not set the values of all the parameters in the parameter query. You have to explicitly assign the parameter in DAO; you do not have to explicitly assign the parameter with the DoCmd.OpenQuery. This is probably a good reason why you are getting that result. Another reason could be misspelled column name. When Jet encounters an unrecognized column name, it assumes it as a parameter.

Similar Threads

  1. <identifier> expected error
    By mbueling in forum Software Development
    Replies: 2
    Last Post: 18-10-2011, 06:04 AM
  2. Dynamic and static parameters in database
    By spuff in forum Software Development
    Replies: 4
    Last Post: 22-02-2010, 08:29 PM
  3. Error '80040e10' Too few parameters
    By Hajra in forum Software Development
    Replies: 3
    Last Post: 28-08-2009, 06:05 PM
  4. Identifier Expected Error in JAVA
    By Brake Fail in forum Software Development
    Replies: 7
    Last Post: 25-10-2008, 02:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,212,503.80440 seconds with 17 queries