N
NH
x-posted to:
microsoft.public.access.formscoding, microsoft.public.access.modulesdaovba
I am trying to run some 'user definable' code on a form using the Eval
function:
This works fine:
myCode = """This "" & ""is "" & ""a "" & ""test"""
Forms!MyForm.MyField = Eval(myCode)
But what I want is:
myCode = """Forms!MyForm.MyField"" & "" = "" & ""Test"""
Eval(myCode)
Am I doing something wrong, or is there another function capable of doing
what I want?
Can anyone suggest another way of doing it?
Thanks,
Nick
microsoft.public.access.formscoding, microsoft.public.access.modulesdaovba
I am trying to run some 'user definable' code on a form using the Eval
function:
This works fine:
myCode = """This "" & ""is "" & ""a "" & ""test"""
Forms!MyForm.MyField = Eval(myCode)
But what I want is:
myCode = """Forms!MyForm.MyField"" & "" = "" & ""Test"""
Eval(myCode)
Am I doing something wrong, or is there another function capable of doing
what I want?
Can anyone suggest another way of doing it?
Thanks,
Nick