Hi John,
The "Open with 12-14-04 Modifications" is the Master table and the "Open Non
Comppay 011105 Updates" is the Update table.
It is pretty big but here it is:
UPDATE [Open with 12-14-04 Modifications] INNER JOIN [Open Non Comppay
011105 Updates] ON ([Open with 12-14-04 Modifications].FillDate = [Open Non
Comppay 011105 Updates].FILLDATE) AND ([Open with 12-14-04
Modifications].NCPDP = [Open Non Comppay 011105 Updates].NCPDP) AND ([Open
with 12-14-04 Modifications].RxNumber = [Open Non Comppay 011105
Updates].RXNUMBER) SET [Open Non Comppay 011105 Updates].CorrectClaim =
[Updates].[Open with 12-14-04 Modifications]![CorrectClaim], [Open Non
Comppay 011105 Updates].NYSIFUnit = [Updates].[Open with 12-14-04
Modifications]![NYSIFUnit], [Open Non Comppay 011105 Updates].[Non-COMPPAY] =
[Updates].[Open with 12-14-04 Modifications]![Non-Comppay], [Open Non Comppay
011105 Updates].COMPPAYApport = [Updates].[Open with 12-14-04
Modifications]![ComppayApport], [Open Non Comppay 011105 Updates].[Appt Date
1 Prior To Flag] = [Updates].[Open with 12-14-04 Modifications]![Appt Date 1
Prior To Flag], [Open Non Comppay 011105 Updates].AportDate1 =
[Updates].[Open with 12-14-04 Modifications]![AportDate1], [Open Non Comppay
011105 Updates].InjuryDt1 = [Updates].[Open with 12-14-04
Modifications]![InjuryDt1], [Open Non Comppay 011105 Updates].Carrier1 =
[Updates].[Open with 12-14-04 Modifications]![Carrier1], [Open Non Comppay
011105 Updates].CarrierCase1 = [Updates].[Open with 12-14-04
Modifications]![CarrierCase1], [Open Non Comppay 011105 Updates].Percent1 =
[Updates].[Open with 12-14-04 Modifications]![Percent1], [Open Non Comppay
011105 Updates].WCBNo1 = [Updates].[Open with 12-14-04
Modifications]![WCBNo1], [Open Non Comppay 011105 Updates].[Appt Date 2 Prior
To Flag] = [Updates].[Open with 12-14-04 Modifications]![Appt Date 2 Prior To
Flag], [Open Non Comppay 011105 Updates].AportDate2 = [Updates].[Open with
12-14-04 Modifications]![AportDate2], [Open Non Comppay 011105
Updates].InjuryDt2 = [Updates].[Open with 12-14-04
Modifications]![InjuryDt2], [Open Non Comppay 011105 Updates].Carrier2 =
[Updates].[Open with 12-14-04 Modifications]![Carrier2], [Open Non Comppay
011105 Updates].CarrierCase2 = [Updates].[Open with 12-14-04
Modifications]![CarrierCase2], [Open Non Comppay 011105 Updates].Percent2 =
[Updates].[Open with 12-14-04 Modifications]![Percent2], [Open Non Comppay
011105 Updates].WCBNo2 = [Updates].[Open with 12-14-04
Modifications]![WCBNo2], [Open Non Comppay 011105 Updates].[Appt Date 3 Prior
To Flag] = [Updates].[Open with 12-14-04 Modifications]![Appt Date 3 Prior To
Flag], [Open Non Comppay 011105 Updates].AportDate3 = [Updates].[Open with
12-14-04 Modifications]![AportDate3], [Open Non Comppay 011105
Updates].InjuryDt3 = [Updates].[Open with 12-14-04
Modifications]![InjuryDt3], [Open Non Comppay 011105 Updates].Carrier3 =
[Updates].[Open with 12-14-04 Modifications]![Carrier3], [Open Non Comppay
011105 Updates].CarrierCase3 = [Updates].[Open with 12-14-04
Modifications]![CarrierCase3], [Open Non Comppay 011105 Updates].Percent3 =
[Updates].[Open with 12-14-04 Modifications]![Percent3], [Open Non Comppay
011105 Updates].WCBNo3 = [Updates].[Open with 12-14-04
Modifications]![WCBNo3];
I really appreciate the help!
Thanks,
Kerney
John Vinson said:
In the query, I pulled all the fields from the Master table and then changed
the "Table:" reference to the second table for the fields I want to update on
the master. When I ran the select query, I saw exactly what I wanted to
update the Master.
I then changed the query type to Update and went to the fields I wanted to
update and added [Updates].[Fieldname] (where the field name was my
fieldname). When I viewed the update query, I saw the results I wanted but
when I hit "Run" it asked me for input.
I then added the Master table name in front of the fieldname in the update
field (i.e., [Updates].[Master Table]![Fieldname]) and viewed the query and
it was fine but again, when I "Run" the query, I am asked for input.
Please open the Query in SQL view and post it here. I think you may
have the joins wrong, but without seeing the query itself I can't
really tell.
John W. Vinson[MVP]