I think you will have better results if you do a SQL querysee if there is any text in the active text box on the database
on your database instead of trying to get the data from a
GUI.
Look up the Macro Scheduler commands
DBConnect
DBClose
DBExec
DBQuery