Results 1 to 3 of 3
  1. #1
    BDibz is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    62

    Filter query results based on Month in combo box error

    This specific statement in my query keeps giving me trouble:


    Click image for larger version. 

Name:	5-23.PNG 
Views:	14 
Size:	2.7 KB 
ID:	34173

    But I don't see why, since the expression should just return a month name, which should match one of the options available in the combobox. Any ideas why this may be breaking?

    The error I'm getting when I use the Where statement is
    Code:
    This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables. (Error 3071)

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Make a month table,1-12
    1, Jan
    2, Feb
    etc...


    the combo will display Jan-Dec, but bound on the #.
    then the query looks for : month(orderDate)

  3. #3
    BDibz is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    62
    Bingo

    Quote Originally Posted by ranman256 View Post
    Make a month table,1-12
    1, Jan
    2, Feb
    etc...


    the combo will display Jan-Dec, but bound on the #.
    then the query looks for : month(orderDate)

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

Similar Threads

  1. Replies: 3
    Last Post: 06-18-2014, 10:40 AM
  2. Replies: 6
    Last Post: 05-05-2014, 10:51 PM
  3. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  4. Replies: 9
    Last Post: 12-02-2011, 12:51 PM
  5. Code results in error on the first day of every month
    By boomerang in forum Programming
    Replies: 6
    Last Post: 11-05-2011, 11:29 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