Results 1 to 3 of 3
  1. #1
    chriswrcg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Philippines
    Posts
    142

    tried to execute a query that does not include the specified expression error message

    I am building some reports in my data base and have been having some good success. My coaching report is working perfectly - exactly like I want it to.

    I tried creating another report similar to the coaching report and am getting the an error message. The only thing different with the two queries that link to the reports is the second one (the qryweeklyReport) the majority of fields have been grouped. In the full name field I have the following criteria in place:


    Code:
    like"*" & [Name "last,first":] & "*"
    . This brings up a window that lets me enter in the name of the associate I want to look at. I also have a
    Code:
    between [start date] and [end date]
    criteria set up on dates.
    What can I do to solve the problem?
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    if thats the criteria you want , then its not a problem.
    if you only want the date range, remove the 'like' criteria.

    if you want 2 reports with different criteria
    make Q1 pull all your records,
    Q2 uses Q1 with the name range
    Q3 uses Q1 with the date range

    set your report to the proper Query.

  3. #3
    chriswrcg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Philippines
    Posts
    142
    Got it figured out. The problem was that I had grouped the fields. I created another query based on the results of the first and applied my criteria . Everything works now.

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

Similar Threads

  1. IIF expression and #Error message
    By Sandova in forum Queries
    Replies: 2
    Last Post: 12-07-2015, 11:38 PM
  2. Replies: 1
    Last Post: 06-14-2015, 09:48 AM
  3. Replies: 5
    Last Post: 04-29-2014, 01:28 PM
  4. Expression is Too Complex Error Message
    By EddieN1 in forum Reports
    Replies: 1
    Last Post: 05-29-2013, 11:16 PM
  5. Replies: 2
    Last Post: 02-07-2012, 08:38 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