View Full Version : Putting Unbound Query Field into Report


rvdb86
06-11-2007, 08:20 AM
Hey guys im really stuck on this one and hope some one can help me out.

I have the following structure:

Table: Products
ID
Product Name

Table: Suppliers
ID
Supplier Name

Table: Prices
ID
Product Name
Supplier Name
Supplier Offer

Query: QrySuppliers
Prices.ID
Prices.Product Name
Prices.Supplier Name
Prices.Supplier Offer
Percent Off Trade: IIf(IsNull([Products]![Trade Price Euros]),0,([Products]![Trade Price Euros]-Nz([Prices]![Supplier Price],0))/[Products]![Trade Price Euros])

Because the "Percent Off Trade" field is unbound to a table I cant get the data into a report, instead every time I open the report it asks me for Products!Trade Price Euros :(

I've never tried doing complicated calculations in Access and would reallly appreciate any suggestions you guys could give me.

I tried to attatch the database but its 508kb so if anyone has a spare second and wants to check it out heres the link http://www.jeron.co.uk/Products.zip

once again thanks!

The_Doc_Man
06-11-2007, 08:27 AM
Check spelling. There is no reason a report cannot show a computed result.

As a possible work-around, you could in theory modify the report to include the same formula and data sources appearing in the query and just recompute the value on the fly.

The issue of the report asking you for a value is that something isn't spelled in the way the report expected it, or isn't properly qualified (as to source) in the way that Access prefers to see it. So it thinks it is looking at a parameter and is asking you for it.

Rich
06-11-2007, 11:57 AM
Repeat the calculation on the Report