Results 1 to 2 of 2
  1. #1
    crobaseball is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    128

    How can I use criteria with an expression?

    So I have a calculated field in a query creating a table, and I don't want any records where the calculated field = 0. So I set the criteria to >0 . . .

    Here's a screenshot of my query: http://www.pixentral.com/show.php?pi...EjkyxRzUybETIF



    But when I go to run it, it asks for a value for
    [List]. When I run it without the criteria, it creates the table without asking for a value for
    [List].

    Thoughts? Thanks!

  2. #2
    crobaseball is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    128
    Well, I googled this a slightly diff way, and the answer I saw says I can't actually do this. I can't refer to another calculated field and have criteria. So I copied and pasted the other calculated field over. This is really strange to me. I'm surprised Access/SQL doesn't allow you to essentially create a variable to use. It makes for some long expressions

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

Similar Threads

  1. Criteria to suppress zero amount from expression
    By George Pollow in forum Queries
    Replies: 6
    Last Post: 05-05-2014, 04:00 PM
  2. Criteria / expression help
    By MissLotus in forum Queries
    Replies: 1
    Last Post: 07-25-2013, 08:59 PM
  3. Criteria expression
    By kdbailey in forum Access
    Replies: 4
    Last Post: 08-13-2012, 04:00 PM
  4. datatype mismatch in criteria expression
    By CyberSkillsz in forum Access
    Replies: 1
    Last Post: 06-14-2011, 10:56 AM
  5. Criteria expression
    By benlw in forum Queries
    Replies: 1
    Last Post: 01-27-2011, 09:34 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