Share via

Error in Access query: Cannot repeat table name in FROM clause

Anonymous
2022-05-10T18:13:57+00:00

I am receiving an error when trying to perform a query - "Cannot repeat table name 'Jobs' in FROM clause." Below is how the query is written.

SELECT Jobs.[Contract Amt], Jobs.[Job Name], Jobs.Location, Jobs.[Comp Date], Customers.[Cust Name], Customers.Contact, Customers.Phone

FROM Jobs, (JOBS INNER JOIN Customers ON Jobs.[Cust Name] = Customers.[Cust Name]) INNER JOIN [PRE-QUAL] ON Customers.[Cust Name] = [PRE-QUAL].[Cust Name]

WHERE (((Jobs.Rept)="1"));

Microsoft 365 and Office | Access | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2022-05-10T18:21:26+00:00

    Try

    SELECT Jobs.[Contract Amt], Jobs.[Job Name], Jobs.Location, Jobs.[Comp Date], Customers.[Cust Name], Customers.Contact, Customers.Phone

    FROM (Jobs INNER JOIN Customers ON Jobs.[Cust Name] = Customers.[Cust Name]) INNER JOIN [PRE-QUAL] ON Customers.[Cust Name] = [PRE-QUAL].[Cust Name]

    WHERE (((Jobs.Rept)="1"));

    Was this answer helpful?

    0 comments No comments