Results 1 to 7 of 7
  1. #1
    katomich is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    4

    can't perform query as shown in tutorial

    Hello,
    I am trying to follow this tutorial and can't figure out what I am doing wrong to get the following error message . I have been following this tutorial doing the Challenge section located at the bottom on the webpage.

    Here is a link to \ the practice file.
    I am following the directions creating the query using the 2 specified tables, changing the direction of the join properties/relationship arrows, entering "27609" in the zip code field, and "Yes" in the paid field, but get the following error message (please see attachment) when I run the query.



    When I do not add "Yes" in the paid field (as stated in the instructions), the search results come out correctly with 20 results. Do you know what I am doing wrong? thank you
    Attached Thumbnails Attached Thumbnails error message.PNG  

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If Paid is a Yes/No field, you don't want quotes around Yes. Alternatively, you can use -1, which is how Yes is stored.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Quotes are used for text data types, I suspect that the Paid Field is not text, it is a Yes/No? In which case remove the quotes.

  4. #4
    katomich is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    4
    Thank John for your quick reply. You were exactly right!

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If by John you mean me, you're welcome.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    katomich is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    4
    Thank you everyone for your replies and support.

  7. #7
    katomich is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    4
    Thank you Paul.

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

Similar Threads

  1. Perform calculations in the query
    By Mehvan in forum Queries
    Replies: 11
    Last Post: 10-01-2016, 03:39 AM
  2. Unclear query in Lesson 21 of Tutorial
    By Lou_Reed in forum Access
    Replies: 1
    Last Post: 05-20-2016, 06:51 AM
  3. Query to perform percentage
    By mari_hitz in forum Queries
    Replies: 4
    Last Post: 04-10-2012, 10:56 AM
  4. Query to perform several special operations
    By Allison in forum Queries
    Replies: 4
    Last Post: 05-13-2011, 04:30 PM
  5. Replies: 2
    Last Post: 04-18-2011, 02:46 PM

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