Just remove the parentheses:
Code:
Form_frmShowRecord.TurnOrange Form_frmShowRecord!txtATime
You don't need them if you're just calling the Sub. It is asking you for an object because when you use the parentheses, you're supposed to be making an assignation like this:
Code:
Set SomeObjectVariable = Form_frmShowRecord.TurnOrange(Form_frmShowRecord!txtATime)
By the way, when using Form_ for your references, favor not using the bang ! and use dot . instead, that way you'll get nice intellisense for that form. Less guessing = less pain.
Please click on the ⭐ below if this post helped you.
↓