Could someone please give an example of how to create a separate query that performs a first join, and then include that query in a SQL statement? I followed the example in the help menu, but it doesn't seem to work?
I don't really know how to use SQL...is there a way to modify this using Design View in MS Access? Thanks in advance. Below is the SQL view of my query:
INSERT INTO Attribute ([Measurement Type Code], [Created By], [Created On], Attribute)
SELECT [Measurement Type].[Measurement Type Code], 675 AS Expr1, Now() AS Expr2, Sheet1.Attribute
FROM (((Sheet1 LEFT JOIN [Measurement Type] ON Sheet1.[Measurement Type] = [Measurement Type].[Measurement Type]) LEFT JOIN [Attribute Type] ON Sheet1.[Attribute Type] = [Attribute Type].[Attribute Type]) LEFT JOIN [Object] ON Sheet1.Object = Object.Object) INNER JOIN Attribute ON (Object.Object = Attribute.[Object Code]) AND ([Attribute Type].[Attribute Type] = Attribute.[Attribute Type Code]);
I don't really know how to use SQL...is there a way to modify this using Design View in MS Access? Thanks in advance. Below is the SQL view of my query:
INSERT INTO Attribute ([Measurement Type Code], [Created By], [Created On], Attribute)
SELECT [Measurement Type].[Measurement Type Code], 675 AS Expr1, Now() AS Expr2, Sheet1.Attribute
FROM (((Sheet1 LEFT JOIN [Measurement Type] ON Sheet1.[Measurement Type] = [Measurement Type].[Measurement Type]) LEFT JOIN [Attribute Type] ON Sheet1.[Attribute Type] = [Attribute Type].[Attribute Type]) LEFT JOIN [Object] ON Sheet1.Object = Object.Object) INNER JOIN Attribute ON (Object.Object = Attribute.[Object Code]) AND ([Attribute Type].[Attribute Type] = Attribute.[Attribute Type Code]);