Currently I have a written some code that opens a form with record info based on another form that is open in the back ground. However, it get the record information to pull up in the new form I had to run the "Find/Find and Replace" command.
Code:
If State = "AZ" Then
DoCmd.OpenForm "AZ Fees"
DoCmd.RunMacro "Find_on_click_TS2" *This opens and runs a find command
My question is: How do I get the Find box to close without closing the Form. Right now I can close the Find box by hitting the escape key, but I'd like to automate it so it closes on itself.
I've seen recommendation of "SendKeys "{ESC}"", but also read that it this is not best practices.
Any help on this matter would be greatly greatly appreciated.
Thank you,
David92595
