Results 1 to 4 of 4
  1. #1
    dashiellx's Avatar
    dashiellx is offline Falconer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Location
    Baltimore
    Posts
    49

    System Resources Exceeded

    When I run this query, I get the System Resources Exceeded Error:


    Code:
    SELECT tluBillingEntity.BillingEntityCode, tblARDetailMaster.PatientName, [tblARDetailMaster].[EncounterType] & '-' & [tluMedicalService].[Mnemonic] AS [Enct/MedServ], tblARDetailMaster.FinancialEncounterNumber, tluFinancialClass.FinancialClassShortName, tblARDetailMaster.AdmissionDate, tblARDetailMaster.DischargeDate, tblARDetailMaster.TotalEncounterBalance, tblARDetailMaster.Insurance1Plan, 1 AS COB, tblARDetailMaster.Insurance1MemberNbr, tblARDetailMaster.AttendingPhysicianName, varARDPolicy([Insurance1MemberNbr]) AS RegError
    FROM ((tblARDetailMaster INNER JOIN tluFinancialClass ON tblARDetailMaster.PrimaryFinancialClass = tluFinancialClass.FinancialClass) INNER JOIN tluBillingEntity ON tblARDetailMaster.BillingEntity = tluBillingEntity.BillingEntity) INNER JOIN tluMedicalService ON tblARDetailMaster.MedicalService = tluMedicalService.MedicalService
    WHERE (((tblARDetailMaster.AdmissionDate)>=#3/13/2020#) AND ((tblARDetailMaster.Insurance1Plan)="Amerigroup / Americaid MCO"));
    However, I do not get this error when running this query:




    Code:
    SELECT tluBillingEntity.BillingEntityCode, tblARDetailMaster.PatientName, [tblARDetailMaster].[EncounterType] & '-' & [tluMedicalService].[Mnemonic] AS [Enct/MedServ], tblARDetailMaster.FinancialEncounterNumber, tluFinancialClass.FinancialClassShortName, tblARDetailMaster.AdmissionDate, tblARDetailMaster.DischargeDate, tblARDetailMaster.TotalEncounterBalance, tblARDetailMaster.Insurance2Plan, 2 AS COB, tblARDetailMaster.Insurance2MemberNbr, tblARDetailMaster.AttendingPhysicianName, varARDPolicy([Insurance1MemberNbr]) AS RegError
    FROM ((tblARDetailMaster INNER JOIN tluFinancialClass ON tblARDetailMaster.PrimaryFinancialClass = tluFinancialClass.FinancialClass) INNER JOIN tluBillingEntity ON tblARDetailMaster.BillingEntity = tluBillingEntity.BillingEntity) INNER JOIN tluMedicalService ON tblARDetailMaster.MedicalService = tluMedicalService.MedicalService
    WHERE (((tblARDetailMaster.AdmissionDate)>=#3/13/2020#) AND ((tblARDetailMaster.Insurance2Plan)="Amerigroup / Americaid MCO"));
    The only difference between the two, is the first query is looking at tblARDetailMaster.Insurance1Plan and the second query is looking at tblARDetailMaster.Insurance2Plan. Both fields in the table have the same set up. (I know this table structure isn't the best, unfortunately, I cannot update the table structure. )


    If I remove the "Amerigroup / Americaid MCO" from the first query, it runs perfectly. Changing the affintiy of Access in the Task Manager to one processors also allows the query to run.

  2. #2
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Could be some bad data in the first field, can you try to create a new query in which you apply the criteria on the admissiondate and Insurance1Plan fields and see if that runs.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    dashiellx's Avatar
    dashiellx is offline Falconer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Location
    Baltimore
    Posts
    49
    This runs perfectly:

    Code:
    SELECT tblARDetailMaster.Insurance1Plan, tblARDetailMaster.AdmissionDateFROM tblARDetailMaster
    WHERE (((tblARDetailMaster.Insurance1Plan)="Amerigroup / Americaid MCO") AND ((tblARDetailMaster.AdmissionDate)>=#3/13/2020#));

  4. #4
    dashiellx's Avatar
    dashiellx is offline Falconer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Location
    Baltimore
    Posts
    49
    For S&G's I removed the index from the field in the table and the first query now runs perfectly.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-30-2019, 07:04 AM
  2. Error Handling "System Resources Exceeded"
    By Chad Access in forum Programming
    Replies: 3
    Last Post: 06-22-2018, 04:31 AM
  3. Replies: 3
    Last Post: 03-14-2016, 05:10 AM
  4. Replies: 4
    Last Post: 01-15-2016, 08:11 AM
  5. Replies: 12
    Last Post: 12-11-2012, 01:47 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