You should look on the from. There should be a control with name AddDisc.
Hope this helps.
Marc
>I'm trying to understand an Access app. I'm trying to figure out where the variable "AddDisc" is defined.
>
>I can see:
>
>
>Private Sub AddDisc_Exit(Cancel As Integer)
> If [CustCost] = 0 Then
> AddDisc = 0
> Else
> [CustDisc] = (1 - ([LineCost] / [AddDisc])) * 100
> End If
> Requery
>End Sub
>
>
>and
>
>
>Private Sub CustDisc_AfterUpdate()
> [AddDisc] = 0
> [AddDisc] = ([LineCost] / ((1 - ([CustDisc]) / 100))) + [AddDisc]
> Requery
>End Sub
>
>
>And I can see where it's used in control sources:
>
>
>=[AddDisc]*[Qty]
>
>
>and
>
>
>=([AddDisc]-[LineCost])*[QTY]
>
>
>What I can't find for the life of me is
where AddDisc is defined!!
>
>From what I can see, it's not in a table.
>
>Where do I look to find this variable?
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.