Hi,
I wonder if I could use command button vba code to change a box's backcolor in another form.
I created a command button (I named: Close, to close example: form1 that is open) and using vba code I want it also to change the backcolor of a box (I named: LED1yellow, to imitate a Light Emitting Diode) in another form (example form2).
I'm using:
LED1yellow. BackColor = vbYellow
To turn the box yellow. But how do I refer to this box that is in form2 from the Close button I did in form1?
Could this be done?
I built two databases and am learning along the way.
Any help please...
Cosmos
I wonder if I could use command button vba code to change a box's backcolor in another form.
I created a command button (I named: Close, to close example: form1 that is open) and using vba code I want it also to change the backcolor of a box (I named: LED1yellow, to imitate a Light Emitting Diode) in another form (example form2).
I'm using:
LED1yellow. BackColor = vbYellow
To turn the box yellow. But how do I refer to this box that is in form2 from the Close button I did in form1?
Could this be done?
I built two databases and am learning along the way.
Any help please...
Cosmos