+ Reply to Thread
Results 1 to 3 of 3

Procedure or function expects parameter which was not supplied

  1. #1
    Registered User
    Join Date
    06-21-2011
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    14

    Post Procedure or function expects parameter which was not supplied

    I am attempting to revise a chunk of code that was used to pull reporting from a database and point it to a new report with a different parameter. The code below is very close to accomplishing this. However, there seems to be an issue with either my variable "nEndDate" or the ADODB command. When I run the code I get an error stating that the procedure was not supplied with the expected parameter. The parameter required by the database must be 'datetime' format.

    Any suggestions out there?


    Please Login or Register  to view this content.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Procedure or function expects parameter which was not supplied

    this
    Please Login or Register  to view this content.
    shouldn't work with a variable declared as date-it would have to be range
    perhaps
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    06-21-2011
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    14

    Re: Procedure or function expects parameter which was not supplied

    Good call JP. Your suggestion worked and led me to my next issue:

    This line

    Please Login or Register  to view this content.
    had the variable 'nEndDate' in the wrong place. It should have been one more place to the right in the value spot.

    Please Login or Register  to view this content.
    The workbook is up and running now. Thanks for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1