Hello
I have two tables, one with the lowest level of data and one with summary data. Both have a date and ID field and I have linked these together in the query. I want to update a field in the summary table based on the sum of the data in the low level table. Here is my SQL:
UPDATE tblSummary INNER JOIN [tblLowLevel] ON (tblSummary .Date = [tblLowLevel].Date) AND (tblSummary .LU = [tblLowLevel].LU) SET tblSummary .[Segment] = DSum("[Deposit Count]","[tblLowLevel]","[tblLowLevel]![LU] = " & [tblSummary ]![LU] & " AND [Segment] = 'Personal' And [tblLowLevel]![Date]= " & [tblSummary ]![Date]);
It runs but I get an error message saying it cant update the table due to type conversions but I am updating a numeric value into a number field so I am guessing I have my quotes in the wrong place.
Can anyone help me please?
I have two tables, one with the lowest level of data and one with summary data. Both have a date and ID field and I have linked these together in the query. I want to update a field in the summary table based on the sum of the data in the low level table. Here is my SQL:
UPDATE tblSummary INNER JOIN [tblLowLevel] ON (tblSummary .Date = [tblLowLevel].Date) AND (tblSummary .LU = [tblLowLevel].LU) SET tblSummary .[Segment] = DSum("[Deposit Count]","[tblLowLevel]","[tblLowLevel]![LU] = " & [tblSummary ]![LU] & " AND [Segment] = 'Personal' And [tblLowLevel]![Date]= " & [tblSummary ]![Date]);
It runs but I get an error message saying it cant update the table due to type conversions but I am updating a numeric value into a number field so I am guessing I have my quotes in the wrong place.
Can anyone help me please?