Results 1 to 5 of 5
  1. #1
    DannyV is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    5

    Need help with calling out two dollar figures


    I'm doing some Access homework and what they're telling me to do is "Create a query to select all records from the tblProperty table with nightly rates of $1,700 or $2,000 in France or Italy." So, I was able to get the ones for France and Italy by writing, In ("France","Italy"), but don't know what to do for the dollar figures. HELP PLEASE! Thanks!

  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,518
    One way:

    In(1700,2000)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DannyV is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    5
    Quote Originally Posted by pbaldy View Post
    One way:

    In(1700,2000)
    Nice! It worked! I was trying with In but I was doing it like this In ("1700","2000"). Thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help. Quotes if the data type of the field is text, no quotes if it's numeric.

    Welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    DannyV is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    5
    Quote Originally Posted by pbaldy View Post
    Happy to help. Quotes if the data type of the field is text, no quotes if it's numeric.

    Welcome to the site by the way!
    Thanks! I'll be on here much more, since I'm taking this class online.

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

Similar Threads

  1. Calling Query from different Access DB
    By Jerry8989 in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 08:48 AM
  2. Replies: 0
    Last Post: 10-04-2008, 07:23 AM
  3. Calling a function and returning a value
    By 3dmgirl in forum Programming
    Replies: 0
    Last Post: 04-23-2007, 02:20 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