Expression in Forms

J

JC

Hi

I have a main form with many sub forms. Have sub totalled on most of the sub
forms. I created a crosstab query to total all monies on each brand - then
want to subtract this total from the budget subform within my main form.

The crosstab includes the columns - shortname(code for brand), cost,
quantity with the expression to cost*quantity. The query does not group the
total under the shortname.

Any ideas?

Thanks
 
J

John W. Vinson

Hi

I have a main form with many sub forms. Have sub totalled on most of the sub
forms. I created a crosstab query to total all monies on each brand - then
want to subtract this total from the budget subform within my main form.

The crosstab includes the columns - shortname(code for brand), cost,
quantity with the expression to cost*quantity. The query does not group the
total under the shortname.

Any ideas?

Thanks

Please post the SQL view of the query, and indicate what it's returning and
what you want it to return. It's impossible to debug based on what you've
posted here.
 
J

JC

TRANSFORM Sum([inventory].[unitprice]*[quantity]) AS [Total Of UnitPrice]
SELECT Brands.ShortName
FROM (Brands LEFT JOIN Inventory ON Brands.ShortName = Inventory.SHortName)
LEFT JOIN Orders ON Inventory.Style = Orders.Style
GROUP BY Orders.Quantity, Inventory.UnitPrice, Brands.ShortName
PIVOT Brands.ShortName;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top