Forgetting about the Eval what are you trying to do?
i've got a form. simply, it there is two text fields, 'text1' and 'text2' and button
i've got a global variable field_name
field_name can be equal
field_name = "text1" or field_name = "text2"
it takes from another part of form, and it's so.
clicking on button, a need to set value of the one of those two fields as "test"
when it's equal text1 i need set "test" as text1 value
when it's equal text2 needs to set "test" as text2 value
it is a simplistically example. at real sutiation number of fields is unknown, so i
can't use -
if field_name = "text1" then
-
Forms![dossier]![text1].Value = "test"
-
elseif field_name = "text2" then
-
Forms![dossier]![text2].Value = "test"
-
end if
-