I need to do two functions in Access which would be very simple in Excel. First one is lookup and the other is Sumif.
I have two tables UW and Clm (representing Underwriting and Claims respectively).
UW table contains following three columns:
1: ID (primary key)
2: Insured
3: Amt (currently empty)
Clm table contains the following columns:
1: ID (linked to ID in UW table. Can contain duplicate values)
2: Amt
3: Insured (currently empty)
First thing which I need to do is fill in UW.Amt with sum of Clm.Amt where ID is same. Eg. UW.ID = 1, the value in UW.Amt should be = 8,000. I tried Sum function in Update statement with either INNER JOIN or WHERE UW.Id = CLM.ID but neither are working.
Second thing which I need is to lookup the Insured name from UW table to Clm table by matching the ID numbers.
Like I said both these functions are very simple, however, I am getting stumped at it. Would appreciate if someone could create the update query in the attached file.
Thanks in advance for the help.
Best regards
Hatim