Hi, I am lost in this problem where I dont seem to be able to find the answer, it should be relatively simple though:
The thing is I would like to refer to a form element by using a VBA variable. Can someone point me in the right direction? Thanks in advance.
Rob
Code:
Dim mytimer As Integer
Dim test
test = Me.DentalDatum
mytimer = 180
If test < (Now - mytimer) Or IsNull(test.Value) Then test.BackColor = "255" Else test.BackColor = "-2147483643"
The thing is I would like to refer to a form element by using a VBA variable. Can someone point me in the right direction? Thanks in advance.
Rob