Results 1 to 2 of 2
  1. #1
    ron3rbns is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    2

    Question Help with Error (3071)

    Hello!



    I am receiving the following error message on a query from a DB that has remained practically unchanged:

    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)

    I've never gotten this error before as this message has just recently started appearing within the last week or two. Also, the design of the query has remained UNCHANGED which is baffling. Any insight on this would be ENORMOUSLY appreciated!!!! SQL statement of the query is posted below... Thanks again!!!!

    SELECT DISTINCT iheat_CallLog.CallID, iheat_CallLog.RecvdDate, tblCustomerSatisfactionSurveys.Sent AS AlreadySent, [qryCustomerSurveys-CallersThisMonth].Sent AS UserSurveyedThisMonth, DateValue([ClosedDate]) AS ClosedD, iheat_CallLog.CustID, iheat_Profile.FirstName, iheat_Profile.LastName, [tblHRHub-Field-Personnel-archive].FIRST_NAME, [tblHRHub-Field-Personnel-archive].LAST_NAME, [tblCustID-Email].Email, iheat_Profile.ADOfficeCode, iheat_Profile.DivFieldOffCode, iheat_CallLog.Category, iheat_CallLog.CallDesc
    FROM ((tblCustomerSatisfactionSurveys RIGHT JOIN ((iheat_CallLog LEFT JOIN iheat_Profile ON iheat_CallLog.CustID = iheat_Profile.CustID) LEFT JOIN [qryCustomerSurveys-CallersThisMonth] ON iheat_CallLog.CustID = [qryCustomerSurveys-CallersThisMonth].CustID) ON tblCustomerSatisfactionSurveys.CallID = iheat_CallLog.CallID) LEFT JOIN [tblCustID-Email] ON iheat_CallLog.CustID = [tblCustID-Email].CustID) LEFT JOIN ([tblEMPLID-EMail] LEFT JOIN [tblHRHub-Field-Personnel-archive] ON [tblEMPLID-EMail].EMPLID = [tblHRHub-Field-Personnel-archive].EMPLID) ON [tblCustID-Email].Email = [tblEMPLID-EMail].EMAIL_ADDR
    WHERE (((DateValue([ClosedDate]))>=DateValue([START DATE]) And (DateValue([ClosedDate]))<=DateValue([STOP DATE])) AND ((iheat_CallLog.CallType)="TOPS Gen." Or (iheat_CallLog.CallType)="TOPS EFS") AND ((iheat_CallLog.ClosedDate)>"1"))
    ORDER BY DateValue([ClosedDate]) DESC;

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    The line of the syntax could be increasing in length due to values and either is too long for the SQL String to handle length wise, or the values themselves are causing problems with the construction of the links or calculations. Check which values that are being parsed with it by running it as a query in query design versus in vba. Or if in the query design, try simplifying. Look for text fields with lengthy text or date values that return nulls, etc....


    If in vba, you can add a:

    msgbox "My SQL: " & strSQL (or whatever variable it holds)

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

Similar Threads

  1. Need help with Error (3071)
    By ron3rbns in forum Queries
    Replies: 0
    Last Post: 03-03-2011, 10:35 AM
  2. error 3071 on OpenReport command
    By degras in forum Reports
    Replies: 5
    Last Post: 02-15-2011, 10:40 AM
  3. Error 438 error in Access 97
    By Bones in forum Access
    Replies: 3
    Last Post: 01-05-2011, 10:12 PM
  4. Replies: 2
    Last Post: 12-02-2010, 02:35 AM
  5. Microsoft Access Error 3071
    By Ev0luTioN in forum Access
    Replies: 1
    Last Post: 08-04-2010, 04:35 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