T
Tom via AccessMonster.com
Is it possible to use the Me variable in the properties sheet for a command
button? For example: I want to use :
=ChangeFormColor([Me])
as the On Click event in the properties window instead of:
=ChangeFormColor([Forms]![frmMainForm]).
The function ChangeFormColor is:
Function ChangeFormColor(frm As Form)
On Error Resume Next
frm.Detail.BackColor = RGB(Rnd * 256, Rnd * 256, Rnd * 256)
End Function
Thanks in advance.
Tom
button? For example: I want to use :
=ChangeFormColor([Me])
as the On Click event in the properties window instead of:
=ChangeFormColor([Forms]![frmMainForm]).
The function ChangeFormColor is:
Function ChangeFormColor(frm As Form)
On Error Resume Next
frm.Detail.BackColor = RGB(Rnd * 256, Rnd * 256, Rnd * 256)
End Function
Thanks in advance.
Tom