G
Guest
I have several similar forms that must store/update a stored calclation using
a setvalue function on an onupdate event. The calculation uses a dlookup
variable based on a value found on the form and appears as follows:
[Length]*DLookUp("[FeeX]","tblType Changes","[DeltaC] =" & [Forms]![Data
Entry Form SR-5]![DeltaC])
I would like to apply this formula from a macro triggered by the onupdate
event but the reference to the form value in the dlookup function is
defeating me. I know (but do not really understand) that the term me can be
used to refer to the form having focus. My efforts to use "me" in lieu of
[Forms]![Data Entry Form SR-5]![DeltaC], so that any form having the field
[DeltaC] will work, need some help.
What would the statement look like?
[me]![deltaC] ??
[Forms]![me]![DeltaC] ?? or what?
Thanks for your time.
a setvalue function on an onupdate event. The calculation uses a dlookup
variable based on a value found on the form and appears as follows:
[Length]*DLookUp("[FeeX]","tblType Changes","[DeltaC] =" & [Forms]![Data
Entry Form SR-5]![DeltaC])
I would like to apply this formula from a macro triggered by the onupdate
event but the reference to the form value in the dlookup function is
defeating me. I know (but do not really understand) that the term me can be
used to refer to the form having focus. My efforts to use "me" in lieu of
[Forms]![Data Entry Form SR-5]![DeltaC], so that any form having the field
[DeltaC] will work, need some help.
What would the statement look like?
[me]![deltaC] ??
[Forms]![me]![DeltaC] ?? or what?
Thanks for your time.