N
Nick X
Hi all,
I am working across platforms with my data (ESRI/GIS and Access). I am
using Access for billing and archiving (and a lot of other cool tasks that I
don't have the patience to perform in ArcGIS). What iwant to do is take data
from my tblInspection (ArcGIS) and move it to tblInspection_Archive (Access).
My Key field is ParcelID (non-unique in archive) and I have a Round # field
(e.g.: 2009_R1, 2009_R2). I need to use these fields to create a unique key
so if someone tries to run the query multiple times on the same Round it will
error out.
SQL:
INSERT INTO tblVLM_Inspection_Archive ( TAXPINNO, Round, Photo1, Path1, CUT,
AMOUNT, LOTTYPE, EXCEPTIONC, DEBRISLOCA, INSPECTOR, K_PID, BULK_, ACCESS_,
TreeRemove, Photo2, Photo3, Photo4, INSDAT, INSPTIME, BRUSH, WC_Container,
PhotoEdit )
SELECT ... (clipped for brevity)
FROM GISADMIN_mv_VLM INNER JOIN tblVLM_Inspection_Archive ON
GISADMIN_mv_VLM.TAXPINNO = tblVLM_Inspection_Archive.TAXPINNO
WHERE (((GISADMIN_mv_VLM.TAXPINNO)=[tblVLM_Inspection_Archive].[TAXPINNO])
AND ((GISADMIN_mv_VLM.Round)<>[tblVLM_Inspection_Archive].[Round]) AND
((GISADMIN_mv_VLM.Photo1)<>"") AND
((GISADMIN_mv_VLM.Path1)<>[tblVLM_Inspection_Archive].[Path1]));
At this point it just keeps appending. Any help would be appreciated.
I am working across platforms with my data (ESRI/GIS and Access). I am
using Access for billing and archiving (and a lot of other cool tasks that I
don't have the patience to perform in ArcGIS). What iwant to do is take data
from my tblInspection (ArcGIS) and move it to tblInspection_Archive (Access).
My Key field is ParcelID (non-unique in archive) and I have a Round # field
(e.g.: 2009_R1, 2009_R2). I need to use these fields to create a unique key
so if someone tries to run the query multiple times on the same Round it will
error out.
SQL:
INSERT INTO tblVLM_Inspection_Archive ( TAXPINNO, Round, Photo1, Path1, CUT,
AMOUNT, LOTTYPE, EXCEPTIONC, DEBRISLOCA, INSPECTOR, K_PID, BULK_, ACCESS_,
TreeRemove, Photo2, Photo3, Photo4, INSDAT, INSPTIME, BRUSH, WC_Container,
PhotoEdit )
SELECT ... (clipped for brevity)
FROM GISADMIN_mv_VLM INNER JOIN tblVLM_Inspection_Archive ON
GISADMIN_mv_VLM.TAXPINNO = tblVLM_Inspection_Archive.TAXPINNO
WHERE (((GISADMIN_mv_VLM.TAXPINNO)=[tblVLM_Inspection_Archive].[TAXPINNO])
AND ((GISADMIN_mv_VLM.Round)<>[tblVLM_Inspection_Archive].[Round]) AND
((GISADMIN_mv_VLM.Photo1)<>"") AND
((GISADMIN_mv_VLM.Path1)<>[tblVLM_Inspection_Archive].[Path1]));
At this point it just keeps appending. Any help would be appreciated.