+ Reply to Thread
Results 1 to 4 of 4

No value given for one or more parameters error

  1. #1
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    No value given for one or more parameters error

    My database has 3 tables (among others):
    RelapseTimes: Fields include S1,T2,U3,S4,W4,RID
    Relapse: Fields include RID,MID
    Clinic; Fields include MID,Date

    Basically, all I want to do is get all the values in the RelapseTimes table where the date is within the last 12 months (i.e. after the date 'a').
    If I include 'date' as a field in RelapseTimes then I have no issue executing the SELECT statement;
    Please Login or Register  to view this content.
    However, I have split my tables so that I do not store the same data in multiple tables but cannot get my SELECT statement to work.
    Date is now only in the Clinic Table.

    I am receiving a 'no value given for one or more parameters' error when attempting to execute this code

    Please Login or Register  to view this content.
    Any suggestions?
    Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: No value given for one or more parameters error

    You only have the RelapseTimes table in the FROM clause, but you are referring to that table and 2 other tables, Clinic and Relapse, in the WHERE clause.

    Try adding a couple of JOINs, something like this perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    Re: No value given for one or more parameters error

    I will give it a try.
    Thanks Norie

  4. #4
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    Re: No value given for one or more parameters error

    Norie,

    I get a syntax error (missing operator) in query expression RelapseTimes.RID = Relapse.RID LEFT JOIN Relapse ON RelapseTimes.MID = Clinic.MID

    Any suggestions?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Too Few Parameters Error Importing Access Query Results into Excel
    By dash11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2012, 04:42 PM
  2. Error 3061 Too Few Parameters Expecting 1
    By Ironman in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 04:24 PM
  3. Error - No value given for one or more required parameters
    By jimmycantler in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2009, 12:19 AM
  4. Object Required Error - Adodb Parameters
    By robnot in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2007, 02:55 PM
  5. Replies: 2
    Last Post: 02-28-2006, 01:15 PM

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