Here you go:
#1) QUERY-CREATE TABLE: Photo_Link from Form Entries:
Code:
SELECT
Photo_Files.Unique_ID,
Project.Project_Name,
Project.Project_Area,
Project.Photo_Year,
Spatial_Locations.FSVeg_Location,
Spatial_Locations.FSVeg_Stand_No,
Spatial_Locations.Easting_UTM,
Spatial_Locations.Northing_UTM,
"C:\Documents and Settings\admessing\Desktop\Archive_Files\"
& [Project]![Photo_Year] & "\" & [Photo_Files]![File_Base]
& "N.jpg" AS IMG_North,
"C:\Documents and Settings\admessing\Desktop\Archive_Files\"
& [Project]![Photo_Year] & "\" & [Photo_Files]![File_Base]
& "E.jpg" AS IMG_East,
"C:\Documents and Settings\admessing\Desktop\Archive_Files\"
& [Project]![Photo_Year] & "\" & [Photo_Files]![File_Base]
& "S.jpg" AS IMG_South,
"C:\Documents and Settings\admessing\Desktop\Archive_Files\"
& [Project]![Photo_Year] & "\" & [Photo_Files]![File_Base]
& "W.jpg" AS IMG_West INTO Photo_Link
FROM (Project INNER JOIN Photo_Files ON Project.Unique_ID = Photo_Files.Unique_ID) INNER JOIN Spatial_Locations ON Project.Unique_ID = Spatial_Locations.Unique_ID
ORDER BY Photo_Files.Unique_ID;
-----------------------------------
#2) Query: Combine Years (creates dups):
Code:
SELECT
Photo_Link.Photo_Year,
Photo_Link.FSVeg_Location,
Photo_Link.Easting_UTM,
Photo_Link.Northing_UTM,
Photo_Link.FSVeg_Stand_No,
Photo_Link.IMG_North,
Photo_Link.IMG_East,
Photo_Link.IMG_South,
Photo_Link.IMG_West,
IIf([Dupe].[Easting_UTM]=[Photo_Link].[Easting_UTM]
And [Dupe].[Northing_UTM]=[Photo_Link].[Northing_UTM]
And [Dupe].[Photo_Year] > [Photo_Link].[Photo_Year],[Dupe].[Photo_Year]) AS Photo_Year2,
IIf([Photo_Year2] Is Not Null,[Dupe].[IMG_North]) AS IMG_North2,
IIf([Dupe].[IMG_North] = [Dupe].[IMG_North], [Dupe].[IMG_East]) AS IMG_East2,
IIf([Dupe].[IMG_East] = [Dupe].[IMG_East],[Dupe].[IMG_South]) AS IMG_South2,
IIf([Dupe].[IMG_South] = [Dupe].[IMG_South], [Dupe].[IMG_West]) AS IMG_West2
FROM Photo_Link LEFT JOIN Dupe ON Photo_Link.Easting_UTM = Dupe.Easting_UTM;
-----------------------------------
#3) QUERY-CREATE TABLE: Combine Multiple Records to Single Point (No Dups):
Code:
SELECT [Combine Records].FSVeg_Location,
[Combine Records].FSVeg_Stand_No,
[Combine Records].Easting_UTM,
[Combine Records].Northing_UTM,
[Combine Records].Photo_Year,
[Combine Records].IMG_North,
[Combine Records].IMG_East,
[Combine Records].IMG_South,
[Combine Records].IMG_West,
[Combine Records].Photo_Year2,
[Combine Records].IMG_North2,
[Combine Records].IMG_East2,
[Combine Records].IMG_South2,
[Combine Records].IMG_West2
INTO Photo_Link_Combined
FROM [Combine Records]
WHERE ((([Combine Records].IMG_North2) Is Not Null));