Ben_Entrew
Registered User.
- Local time
- Today, 08:51
- Joined
- Dec 3, 2013
- Messages
- 177
Hi all,
I want to sum up specific records in a table called TNS.
All records with Division = Common should be summed up to
the records with Division = AK.
TNS contaıns columns Division, 012013,022013...,122013
I tried following without success:
It shows me following error:
Access doesn't recognize TNS as a valid field name or expression.
Something is missing in this syntax.
Thanks in advance.
Regards,
Ben
I want to sum up specific records in a table called TNS.
All records with Division = Common should be summed up to
the records with Division = AK.
TNS contaıns columns Division, 012013,022013...,122013
I tried following without success:
Code:
Public Sub TEST22()
Dim strSQL As String
strSQL = "Update TNS Set [012013] = 0.5 * DLookup([012013], TNS, Division = 'COMMON') " & _
" Where Division IN ('AK') "
DoCmd.RunSQL strSQL
End Sub
Access doesn't recognize TNS as a valid field name or expression.
Something is missing in this syntax.
Thanks in advance.
Regards,
Ben