L
Linda
I have a form called PA. It contains a text box called SR Number(it is
text). It also has a button which opens a Risk form when clicked. The Risk
forms have a text box call Assoc_PA which is the same value as the SR Number.
I would like to have a text box, called Rsk_Cnt, next to the Open Risk Form
button that displays the number of risk forms that have the Assoc_PA equal to
the SR Number. The table which the risk form gets its data from is called
Risk_Tracker. So I've tried to use the following statement as the control
source for Rsk_Cnt
=DCount("*","Risk_Tracker","Assoc_PA = Me.[SR Number]")
but I get #Error in the Rsk_Cnt text box. Please tell me what I'm doing
wrong.
Thanks.
text). It also has a button which opens a Risk form when clicked. The Risk
forms have a text box call Assoc_PA which is the same value as the SR Number.
I would like to have a text box, called Rsk_Cnt, next to the Open Risk Form
button that displays the number of risk forms that have the Assoc_PA equal to
the SR Number. The table which the risk form gets its data from is called
Risk_Tracker. So I've tried to use the following statement as the control
source for Rsk_Cnt
=DCount("*","Risk_Tracker","Assoc_PA = Me.[SR Number]")
but I get #Error in the Rsk_Cnt text box. Please tell me what I'm doing
wrong.
Thanks.