I'm trying to update a form using the eval function in a program.
However there is a part that I can't get to work
It will not change the back ground color to white.
I use the eval function since I will do this many times and the form automatically add textboxes when more data is available
Function test()
a = "Forms![INFORM]!LabelIt7.backcolor= 16777215"
Eval (a)
Debug.Print a
End Function
Also tried "Forms![INFORM]!LabelIt7.backcolor= " & 16777215
It doesn't change the color and it doesn't give an error message.
If I change the a string into an command that is not possible it will give an error message.
If I give an enter in the immediate window at the place where it printed the 'a' string the function works perfectley.
Can anybody tell me where I go wrong?
However there is a part that I can't get to work
It will not change the back ground color to white.
I use the eval function since I will do this many times and the form automatically add textboxes when more data is available
Function test()
a = "Forms![INFORM]!LabelIt7.backcolor= 16777215"
Eval (a)
Debug.Print a
End Function
Also tried "Forms![INFORM]!LabelIt7.backcolor= " & 16777215
It doesn't change the color and it doesn't give an error message.
If I change the a string into an command that is not possible it will give an error message.
If I give an enter in the immediate window at the place where it printed the 'a' string the function works perfectley.
Can anybody tell me where I go wrong?