Query Criteria is too complex

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adrian Tache
    New Member
    • Nov 2010
    • 12

    Query Criteria is too complex

    I'm having an issue with a query search for invoices where the due date of the invoices searched is provided through a combo box in a form

    the combo box has the following code:
    Code:
     DoCmd.OpenQuery "Invoice by Due Date"
        Me.Combo0 = ""
    it basically runs the query which has the condition below which equates invoice due date to:
    Code:
    [Forms]![Timesheet by Employee]![Combo0]
    to which i get a 3071 expression too complex error. same error if I run the query directly. ran the same setup for employee names and it worked flawlessly. When i ran that query it returned a prompt for [Forms]![form name]![Combo0]

    umm, help? :D
  • Mariostg
    Contributor
    • Sep 2010
    • 332

    #2
    You should post the SQL statement of the query itself. I don't think there is enough details here for anyone to help.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32656

      #3
      I think it needs more than just that Adrian. You need to ask the question more clearly. I read it and then think to myself What did that just say? I still have very little idea what your problem is.

      Comment

      • Adrian Tache
        New Member
        • Nov 2010
        • 12

        #4
        not exactly sure how to explain it differently...

        the query is a simple show all query but done in design view in order to set the condition for the field to equate to the combo box in the form

        it's a complex thing which is why i personally can't explain it differently

        Comment

        • Mariostg
          Contributor
          • Sep 2010
          • 332

          #5
          Adrian,
          I those circumstances, I am afraid I cannot help. Maybe somebody else will. Clearly, I don't have enough information.

          Comment

          • Adrian Tache
            New Member
            • Nov 2010
            • 12

            #6
            don't worry about it, it's not a crucial thing

            thanks for your time though :)

            Comment

            Working...