I have an access form set up with a few subforms, I am trying to calculate the sum of one of the columns in a subform where the ID is the one currently displayed in the containing form. So I need some kind of sql but im stuck on the where section i.e SELECT sum(size_kb) FROM file_types WHERE ID = "the current record"; the database consists of 2 tables with ID as the primary key, this has a 1 to many relationship from articles to file_types, respectively any ideas? Thanks Gary
What does your database schema look like? You said you have 2 tables, but your SQL query only uses one table file_type.