T
TinMan
I have 2 sub tables that are both foreign key related to a main table. I need
to move to fields from one table (t1) and move it into the other (t2). I need
to import the data where the foreign key (Registrataion Number) along with
the weekending date field are a match. I have created an Append/Update Qry
and have posted the SQL as follows. Can anyone tell me what is wrong with it:
INSERT INTO [Vehicle Payments] ( StartODO, FinishODO, WeekEnding, WeekEnding )
SELECT [Weekly Mileage].StartODO, [Weekly Mileage].FinishODO, [Weekly
Mileage].WeekEnding, [Vehicle Payments].WeekEnding
FROM [Weekly Mileage], [Vehicle Payments]
WHERE ((([Weekly Mileage].WeekEnding)=[Weekly Payments].[Weekending]) AND
(([Vehicle Payments].Reg)=[Weekly Payments].[RegNo]));
to move to fields from one table (t1) and move it into the other (t2). I need
to import the data where the foreign key (Registrataion Number) along with
the weekending date field are a match. I have created an Append/Update Qry
and have posted the SQL as follows. Can anyone tell me what is wrong with it:
INSERT INTO [Vehicle Payments] ( StartODO, FinishODO, WeekEnding, WeekEnding )
SELECT [Weekly Mileage].StartODO, [Weekly Mileage].FinishODO, [Weekly
Mileage].WeekEnding, [Vehicle Payments].WeekEnding
FROM [Weekly Mileage], [Vehicle Payments]
WHERE ((([Weekly Mileage].WeekEnding)=[Weekly Payments].[Weekending]) AND
(([Vehicle Payments].Reg)=[Weekly Payments].[RegNo]));