Show Specific Records on a Report

lsteffen

Board Regular
Joined
May 11, 2006
Messages
111
Hello,

I am using IIF to pull specific records onto a report. My data is setup so that when the header record is made, I can add specific detail records for that header. The PK of the Header table and the FK of the detail table are always the same. I have written a query to pull all of the records together to show a summary on a report. Here is the IIF statement that I have written to pull the specific data out and it is not working.

=IIf([qry_DataCollectionForReport!DBH]=16,IIf([qry_DataCollectionForReport!Stage]=6,[qry_DataCollectionForReport!Trees],0),0)

DBH, Stage and Trees are all detail records that are pulled by the query based on date.

I can send/post my database if needed.

Any help would be greatly appreciated.

Thank you,
Liz
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top