Hello!
Here is JavaScript from Acrobat:
Code:
function bg1(){//on Focus, make field background color light yellow
event.target.fillColor = ["RGB", 1,1,.85];
}
//
function bg2(){//on Blur, make field background transparent
event.target.fillColor = color.transparent;
}
//
I can call these functions in the Acrobat form field's property actions for onFocus and onBlur to change the fill color.
I have this public function in Access:
Code:
Public Function SetFillColor()
Dim lngRed As Long
lngRed = RGB(255, 0, 0)
EventTarget.ForeColor = lngRed
End Function
I would like to call this from a control's On Got Focus property by passing the current control's "Target" value...
Obviously, this doesn't work... EventTarget is seen as an undefined variable.
Probably easy, but have spent much time with no success. :-(
THANKS in advance....
Somewhat-dangerous-programmer Bud