LuigiCorleone
New member
- Local time
- Today, 18:50
- Joined
- May 14, 2002
- Messages
- 7
I'm populating an access report from an sql string thus: (edited version below)
SQL = "SELECT asset.Local_ID, asset.Category, asset.Asset_Label, asset.Asset_Loc, " _
& "asset.Task_Price, asset.Invoice_Price"
Me.RecordSource = SQL
No problems, everything is working fine except....
I want to populate a field on my report called "Price" with the greatest of either the asset.Task_Price or the asset.Invoice_Price.
So each record on the report displays the "Price" as the highest of either figure.
Do I use an "If" statement and if so, where do I put it. My feeble attempts thus far have been spectacularly unsuccessful.
Thanks in eager anticipation
Luigi
SQL = "SELECT asset.Local_ID, asset.Category, asset.Asset_Label, asset.Asset_Loc, " _
& "asset.Task_Price, asset.Invoice_Price"
Me.RecordSource = SQL
No problems, everything is working fine except....
I want to populate a field on my report called "Price" with the greatest of either the asset.Task_Price or the asset.Invoice_Price.
So each record on the report displays the "Price" as the highest of either figure.
Do I use an "If" statement and if so, where do I put it. My feeble attempts thus far have been spectacularly unsuccessful.
Thanks in eager anticipation
Luigi