Changing field with computed value to static text

Hello,

I think this may be an easy question for you pro’s out there, but for me, as a novice, I am stuck. Any help is greatly appreciated.

I’m trying to create a field that is initially populated using a dblookup based on the value of another field on the same form, but the trick is I want to be able to modify the contents of that field if I desire to.

I tried using the dblookup in the default value pane, but this doesn’t work since, at the time the form is created, the field that is used for the look up is blank.

When I put the dblookup in the input translation pane, it works great, but when I try to change the value, it changes back to the lookup (according to help, this is how it’s supposed to work).

Is there anything I can do to prevent the lookup for occurring after the initial population of this field?

Thanks in advance.

Subject: Changing field with computed value to static text

Try this…

Lets say Field_A is the field you want populated based on Field_B. Enter this formula in the Input Translation field for Field_A with your current @DbLookup.

@If(Field_A = “” & Field_B != “”; @DbLookup…; Field_A)

What this will do is when the form is created, neither A or B are populated, so there is no value. When you populate Field_B and there is a form refresh, since Field_B is populated and Field_A is blank, the dblookup occurs, populating Field_A. You can then change the value of Field_A because now the dblookup will not occur because Field_A now is populated and the Input Translation formula will return whatever value is in Field_A.

Hope this helps!

Subject: RE: Changing field with computed value to static text

Bob,

Your suggestion worked like a charm! Thanks a bunch.