It appears that when I try and calculate a formula in a field within access I need to pull in the fields used in the calculation into the query in order for the calculated field to work.
Example
Fields
COGS_UNIT
TXN_QTY
I want to calculate the total COGS for all units purchased so I set up
TTL_COGS: (COGS_UNIT*TXN_QTY) as an expression in the new table I am trying to create. The query will not work as I have not included the COGS_UNIT and TXN_QTY fields in my query. If I pull them in the query works, but I do not need the individual COGS_UNIT and TXN_QTY data in my table. Any thoughts on how I can run without having to pull in the individual fields as well. I understand that unchecking the show box will exlcude the results from the table but it adds to the query time if I am pulling a number of fields thus I would prefer to leave them out if possible.
I hope this makes sense.
Thanks
Sean
Example
Fields
COGS_UNIT
TXN_QTY
I want to calculate the total COGS for all units purchased so I set up
TTL_COGS: (COGS_UNIT*TXN_QTY) as an expression in the new table I am trying to create. The query will not work as I have not included the COGS_UNIT and TXN_QTY fields in my query. If I pull them in the query works, but I do not need the individual COGS_UNIT and TXN_QTY data in my table. Any thoughts on how I can run without having to pull in the individual fields as well. I understand that unchecking the show box will exlcude the results from the table but it adds to the query time if I am pulling a number of fields thus I would prefer to leave them out if possible.
I hope this makes sense.
Thanks
Sean