Results 1 to 4 of 4
  1. #1
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159

    What's wrong with this Query?

    SELECT tblFNBox.box_number


    FROM tblFNBox
    WHERE (((tblFNBox.fileStartNo)>=Forms!frmFN_MainMenu!txt FindBox) And ((tblFNBox.fileFinishNo)<=Forms!frmFN_MainMenu!txt FindBox));

    I basically have a txtBox called txtFindBox and when the user enters a number the query above finds a box based on that number.

    In the fields for the box I have a fileStartNo and a fileFinishNo to indicate the files that are in that box so my query basically looks for values that are less than and equal to each of these numbers.

    Returns nothing though....hmmmmm.......

    Nevermind...........I fixed it..........too much sunshine is aggravating me! ;-)

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    How about sharing your solution with other readers?

  3. #3
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    I just had the < and the > in the wrong places. That's all. Simple really.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Thanks. That makes the thread complete.

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

Similar Threads

  1. Please help: what is wrong with this query?
    By drhassan in forum Queries
    Replies: 4
    Last Post: 05-24-2012, 05:15 PM
  2. What's wrong with this expression in a query?
    By djclntn in forum Queries
    Replies: 18
    Last Post: 11-17-2011, 06:12 PM
  3. What's wrong with my query?
    By Grek in forum Queries
    Replies: 2
    Last Post: 10-31-2011, 12:12 PM
  4. What's wrong with this query?
    By jsoldi in forum Queries
    Replies: 2
    Last Post: 10-11-2010, 07:45 AM
  5. Query for latest date? what am I doing wrong?
    By Overdive in forum Queries
    Replies: 1
    Last Post: 12-18-2009, 06:04 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