MyScreen.SendKeys ("<Clear>")
MyScreen.SendKeys ("ACCT " + [AcctNo])
MyScreen.SendKeys ("<Enter>")
Ok, so the above coding works perfectly. It sends the word "ACCT" and the content of the AcctNo field to the mainframe and hits the enter key, pulling up the required information.
But when I try to add an F1 key function, it doesn't work. It just sends the word "F1" to the screen; it doesn't hit the F1 key. I've tried it with < > and with { }, but neither works. What am I doing wrong? Thanks!
MyScreen.SendKeys ("ACCT " + [AcctNo])
MyScreen.SendKeys ("<Enter>")
Ok, so the above coding works perfectly. It sends the word "ACCT" and the content of the AcctNo field to the mainframe and hits the enter key, pulling up the required information.
But when I try to add an F1 key function, it doesn't work. It just sends the word "F1" to the screen; it doesn't hit the F1 key. I've tried it with < > and with { }, but neither works. What am I doing wrong? Thanks!