How do I make a command button flash on the main form when a new record is added to a subform?I have already written the code behind this button,just need to add code to make the button flash.
Thanks for your tips.
to make the button flash enter this code in the On Timer event of your form:
'replace nameofcommandbutton with your command button's name.
If nameofcommandbutton.visible = True Then
nameofcommandbutton.visible = False
Else
If nameofcommandbutton.visible = False Then
nameofcommandbutton.visible = True
End If
End If
make sure the timer interval is defaulted to 0.
in the event proc that creates the new record you will need to set the timer interval:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.