I thought this would be simple but I can’t figure it out. On a form I have a command button (the button is just a macro to print a report) and I call it “printericon” . but I want the printericon button to be hidden if the amount of records in the subform is greater than 36. I have done a macro with the IF statement with the setproperty function and it won’t work.
Here is what I wrote
If (count([material])<36)
Setproperty
Printericon
Visible
True
ELSE
Setproperty
Printericon
Visible
False
I put this macro under “After update” of a search box I had on the form. So if the search box changes this would fire off the macro to set the printer icon to be invisible or visible. But it’s NOT what am I doing wrong ?