Share via

Separate SqL query for Error 3258

Anonymous
2014-04-27T08:47:49+00:00

SELECT [Inventory Transactions Extended].Inventory.[Inventory ID], [Inventory Transactions Extended].Inventory.Item, Sum([Inventory Transactions Extended].[Actual Quantity]) AS [Current Stock], [Inventory Transactions Extended].[Reorder Level], [Target Stock Level]-[Current Stock] AS [Reorder Amount], [Inventory Transactions Extended].[Target Stock Level], [Inventory Transactions Extended].Category, [Inventory Transactions Extended].Location, [Supplier Query].Expr1

FROM (MaterialsOrder INNER JOIN ([Inventory Transactions Extended] LEFT JOIN [Supplier Query] ON [Inventory Transactions Extended].Supplier = [Supplier Query].[Supplier ID]) ON MaterialsOrder.[Supplier ID] = [Supplier Query].[Supplier ID]) INNER JOIN [MaterialsOrder Detail] ON MaterialsOrder.[Order ID] = [MaterialsOrder Detail].[Order ID]

GROUP BY [Inventory Transactions Extended].Inventory.[Inventory ID], [Inventory Transactions Extended].Inventory.Item, [Inventory Transactions Extended].[Reorder Level], [Inventory Transactions Extended].[Target Stock Level], [Inventory Transactions Extended].Category, [Inventory Transactions Extended].Location, [Supplier Query].Expr1;

What query should i separate and then rejoin ??

http://msdn.microsoft.com/en-us/library/office/jj729970(v=office.15).aspx

Microsoft 365 and Office | Access | For home | 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. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2014-04-27T16:43:43+00:00

    When you design this query you SHOULD see that the arrowed lines (indicating outer joins) point in the same direction, and all lines have arrows.

    If that's not what you want, you can first create a query with the outer join:

    ([Inventory Transactions Extended] LEFT JOIN [Supplier Query]

    then pull that query into your main query to replace these tables.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments