Results 1 to 4 of 4
  1. #1
    Aweiher is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2016
    Posts
    25

    Unhappy Enter Parameter Value when syntax is correct??

    New member here, so bare with me if miss some posting basics.

    I have a query that has criteria based on the value entered in a form. When I run the criteria I get a 'Enter Parameter Value' pop up. Clearly the query is not finding the field on the form. I've triple checked my syntax, and even used the Build feature to ensure I didn't mess anything up.

    My form name is "frmInvoices". My control name is "txtAmountDueGreater". And the syntax in the criteria is ">[Forms]![frmFindInvoices]![txtAmountDueGreater]"



    Seems pretty basic to me. What am I missing? Thanks in advance!

    Note: I am using Access 2016. I have done this many times before with Access 2013. I should also note that the control is not blank and I am not in the forms Design view.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    My form name is "frmInvoices". My control name is "txtAmountDueGreater". And the syntax in the criteria is ">[Forms]![frmFindInvoices]![txtAmountDueGreater]"
    If the form IS called "frmInvoices" then the criteria should be: >[Forms]![frmInvoices]![txtAmountDueGreater]. Not sure what the [/QUOTE] is supposed to refer to though.

    Edit: Please disregard the following from above:
    Not sure what the
    [/QUOTE] is supposed to refer to though.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  4. #4
    Aweiher is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2016
    Posts
    25
    Yes the form is open. Here is my SQL. FWIW, is there a more appropriate way to post this?

    SELECT [invamountdue]-[invamountpaid] AS AmountOwed, tblInvoices.invClinicNumber, tblInvoices.invPersonNumber, tblInvoices.invDate, tblInvoices.invAmountDue, tblInvoices.invDocuments, tblInvoices.invDateEntered, tblServiceDates.sdDate
    FROM tblInvoices INNER JOIN tblServiceDates ON tblInvoices.invAutoNumber = tblServiceDates.sdInvoiceNumber
    WHERE (((tblInvoices.invAmountDue)>[Forms]![frmFindInvoices]![txtAmountDueGreater]));

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Enter parameter value when fields are correct
    By grahamYSA in forum Access
    Replies: 1
    Last Post: 07-09-2015, 02:03 AM
  2. Replies: 2
    Last Post: 05-20-2015, 08:26 AM
  3. Correct Syntax
    By bidbud68 in forum Programming
    Replies: 6
    Last Post: 10-19-2012, 01:09 AM
  4. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  5. What is the correct syntax for
    By giladweil in forum Access
    Replies: 1
    Last Post: 07-29-2010, 04:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums