Microsoft access errors

Alex Chen 21 Reputation points
2022-10-17T14:55:27.59+00:00

If I run a query in ms access and receive errors in running the query. I clicked the help popup. If the help popup does not help me debug the query, what other resources can I use?

Microsoft 365 and Office Access Development
Microsoft 365 and Office Install, redeem, activate For business Windows
{count} votes

Accepted answer
  1. Viorel 122.6K Reputation points
    2022-10-24T14:54:24.613+00:00

    Maybe you should remove these characters at the end: ") b".


1 additional answer

Sort by: Most helpful
  1. Alex Chen 21 Reputation points
    2022-10-24T14:38:32.57+00:00

    SELECT max_exam.nfa_id AS nfa_id2,
    fm.matter_number AS exam_id,
    fm.matter_open_date,
    max_exam.matter_close_date
    FROM facts_matter fm
    right join (
    select e.matter_number, e.nfa_id, f.matter_close_date from
    (select Max(c.matter_number) AS matter_number,
    d.nfa_id
    FROM
    (select matter_number, matter_open_date, matter_close_date
    from facts_matter
    WHERE matter_number LIKE '%DEXM%'
    and matter_open_date < TO_DATE('20220601','YYYYMMDD')) c
    left join
    (SELECT matter_number, nfa_id
    FROM facts_matter_party
    WHERE matter_number LIKE '%DEXM%') d
    on c.matter_number = d.matter_number
    GROUP BY d.nfa_id) e
    left join
    (select matter_number, matter_close_date
    from facts_matter
    WHERE matter_number LIKE '%DEXM%') f
    on e.matter_number = f.matter_number
    ) max_exam
    ON fm.matter_number = max_exam.matter_number) b 253519-query-error-1.png

    @xps350 @Ceasar Chen_MSFT

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.