A
AJ
I have a clear button and when I click it I have some vba code that I want
performed.
Example (does NOT work):
.... cmdOK_Click()
[Forms]![form1]![field1].Visible = False
[Forms]![form1]![field2].Visible = False
call sub ABC
The code does not work (it calls the sub but does not set the fields to
invisible. BUT, if I add a msgbox it works fine??? Can anyone explain why??
Example (does work):
..... cmdOK_Click()
[Forms]![form1]![field1].Visible = False
[Forms]![form1]![field2].Visible = False
msgbox"code works if I use this"
call sub ABC
HELP!! Thanks!!
performed.
Example (does NOT work):
.... cmdOK_Click()
[Forms]![form1]![field1].Visible = False
[Forms]![form1]![field2].Visible = False
call sub ABC
The code does not work (it calls the sub but does not set the fields to
invisible. BUT, if I add a msgbox it works fine??? Can anyone explain why??
Example (does work):
..... cmdOK_Click()
[Forms]![form1]![field1].Visible = False
[Forms]![form1]![field2].Visible = False
msgbox"code works if I use this"
call sub ABC
HELP!! Thanks!!