Results 1 to 4 of 4
  1. #1
    nparrillo is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    14

    Easy query problem

    Folks,

    Just am running a very basic query and for some reason I am having a problem.

    What is wrong with the below IIF:

    CLOSE TO LEASE: IIf(28.613712<[Surface Latitude]<28.9567025 And -98.7526974<[Surface Longitude]<-98.343918,"SIMMONS")

  2. #2
    nparrillo is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    14
    the query seems to run fine with no error messages, yet it is not yielding the "simmons" when it should

  3. #3
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    Your conditions don't look right:

    IIf(28.613712<[Surface Latitude]<28.9567025 And -98.7526974<[Surface Longitude]<-98.343918,"SIMMONS")

    I'm not sure what you're testing, but that syntex is incorrect. Maybe a Between condition would work?

  4. #4
    nparrillo is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    14
    how do you do a between condition?

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

Similar Threads

  1. Replies: 0
    Last Post: 03-29-2011, 09:37 AM
  2. Easy Question Need Help With
    By jdusaf in forum Access
    Replies: 1
    Last Post: 03-23-2011, 11:33 AM
  3. There should be an easy answer, Please Help.
    By tucker1003 in forum Database Design
    Replies: 3
    Last Post: 03-03-2011, 01:03 PM
  4. Easy question
    By Danzig in forum Access
    Replies: 11
    Last Post: 10-28-2010, 06:48 PM
  5. I know this has to be easy...
    By MelindaP in forum Access
    Replies: 7
    Last Post: 08-20-2010, 02:15 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