Results 1 to 5 of 5
  1. #1
    jderrig is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    7

    between query issues

    I have a query that I am trying to filter by TTLSales and it is bringing back too many records.

    >=[forms]![frmGraphSalesRange>10]![BeginningSalesRange] And <=[Forms]![frmGraphSalesRange>10]![EndingSalesRange]

    In the BeginningSalesRange I am inputting 100,000,000 and
    int the EndingSalesRange I am inputting 200,000,000

    What I get is everything with a value of 0-200,000,000
    Last edited by jderrig; 01-15-2010 at 11:57 AM. Reason: Solved.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try using:
    Between [forms]![frmGraphSalesRange>10]![BeginningSalesRange] And [Forms]![frmGraphSalesRange>10]![EndingSalesRange]
    ...I'm pretty sure in is inclusive.

  3. #3
    jderrig is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    7

    that doesn't work either

    There must be something with using the form - when I substitute

    Between[forms]![frmGraphSalesRange>10]![BeginningSalesRange] And[Forms]![frmGraphSalesRange>10]![EndingSalesRange]

    for

    Between 100000000 And 200000000, it gives me the correct number of records.

  4. #4
    jderrig is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    7

    Resolved!!

    Thanks for the reply. After further research, I had no idea that you had to set the format on the form to the same as in the query. I changed the format of the form to Standard and it worked.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great! Thanks for posting back and marking the thread as Solved.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-23-2010, 04:01 PM
  2. Replies: 4
    Last Post: 11-06-2009, 09:51 AM
  3. Relationship issues
    By asweisman in forum Database Design
    Replies: 1
    Last Post: 04-20-2009, 08:04 PM
  4. Replies: 0
    Last Post: 03-11-2009, 11:40 AM
  5. Check Box issues
    By data123 in forum Forms
    Replies: 0
    Last Post: 01-03-2007, 03:21 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