I am trying to calculate a sum of values in column in an access form but can’t figure out the syntax. The access form displays the records from a table called “Apts” in a Microsoft SQL database and works fine. However, I tried to add a calculate button in the form to sum a numeric field called “Tot_val” with a filter called “OwnerName” and put the result in a textbox in the form called “Text20”, but I am not sure of the syntax. I am looking for something simple like:
select Sum(Tot_val) from Apts where OwnerName=Me.Text10.value
and have the result inserted into Me.text20
Thanks for your help, rew2009
select Sum(Tot_val) from Apts where OwnerName=Me.Text10.value
and have the result inserted into Me.text20
Thanks for your help, rew2009