Help with a Calculated Field

aball65

Registered User.
Local time
Today, 09:03
Joined
Oct 14, 2004
Messages
44
Hello,

I have a form called RISK that pulls data from a table called RISK. I want to display a calculated field (read only) on the RISK form which represents the sum of the following table fields:

R_COST_IMP.value
R_SCHED_IMP.vaue
R_PERF_IMP.value

The following foreign keys link the R_COST_IMP, R_SCHED_IMP and R_PERF_IMP tables to the RISK table:

RISK.rci_id -> R_COST_IMP.rci_id
RISK.rsi_id -> R_SCHED_IMP.rsi_id
RISK.rpi_id -> R_PERF_IMP.rpi_id

Any ideas would be greatly appreciated!
 
Have you tried adding those tables to the query for the RISK form RecordSource?
 
I did that and the form now recognizes the R_COST_IMP, R_SCHED_IMP and R_PERF_IMP fields. Thanks! Now, how do I define the control for my summary field? =[R_SCHED_IMP].[Value]+[R_PERF_IMP].[Value]+[R_PERF_IMP].[Value] doesn't work. Sorry, I'm an Access newbie...
 
Hi aball65,
I want to know what's the data type of the R_COST_IMP, R_SCHED_IMP and R_PERF_IMP fields you designed? is text or number?
Example textbox is sum field

+case number: control source is: =R_COST_IMP+ R_SCHED_IMP+R_PERF_IMP.

+case text: control source is: =val([R_COST_IMP])+val([R_SCHED_IMP])+val([R_PERF_IMP])
 
Try the following:
=[R_SCHED_IMP]+[R_PERF_IMP]+[R_PERF_IMP]
 

Users who are viewing this thread

Back
Top Bottom