Cowboy_BeBa
Registered User.
- Local time
- Tomorrow, 04:34
- Joined
- Nov 30, 2010
- Messages
- 188
hey everyone
im hoping theres a simple solution to what i need to do
im working on adding new features to a db i built last year and i need to add a textbox to a report, the textbox should be autocalculated when the report loads. it needs to be the sum of two different fields (on different tables from the one this report is based on, using the key "batchRun")
Ive writtena query to solve this
[SELECT ( sum (tblAddProduction.addPercentage) + sum (tblAddIngredient.adiPercentage))
FROM tblAddProduction, tblAddIngredient
WHERE tblAddProduction.BatchRun=tblAddIngredient.batchRun=[batchRun]]*
*the final [batchRun] in the where statement refers to a text field on the actual report that this sql code will be added to
so far the problem is when i enter this sql into the expression builder for that control it tells me theres malformed GUID constant, can anyone help me out with this one?
cheers,
ben
im hoping theres a simple solution to what i need to do
im working on adding new features to a db i built last year and i need to add a textbox to a report, the textbox should be autocalculated when the report loads. it needs to be the sum of two different fields (on different tables from the one this report is based on, using the key "batchRun")
Ive writtena query to solve this
[SELECT ( sum (tblAddProduction.addPercentage) + sum (tblAddIngredient.adiPercentage))
FROM tblAddProduction, tblAddIngredient
WHERE tblAddProduction.BatchRun=tblAddIngredient.batchRun=[batchRun]]*
*the final [batchRun] in the where statement refers to a text field on the actual report that this sql code will be added to
so far the problem is when i enter this sql into the expression builder for that control it tells me theres malformed GUID constant, can anyone help me out with this one?
cheers,
ben