NEED HELP ADJUSTING CODE -USING VBA WITH REFLECTION FOR UNIX DATABASE
I am still fairly new to using VBA and have managed to figure out a lot but I have a code I am running that I have managed to adjust to work but it is not working as efficiently as I would like.
When running the code there are certain accounts that have prompts that not other accounts have. I have managed to make the code run but we have to manually answer the out of ordinary questions manually to get it to pick up again.
How do I adjust the code to make it so the system doesn't expect the string for everything but will automatically answer the question on its own if it does come up.
Here is the section of code that I am having issues with I still have it written into the macro but like I said when it appears with the account we have to answer the questions manually for it to pick back up.
Thanks in advance.
Code:
'.StatusBar = "Waiting for Prompt: Do you want to continue processing this patient record? No//"
'.WaitForString LF & "Do you want to continue processing this patient record? No// ", NEVER_TIME_OUT, rcAllowKeystrokes
'.StatusBar = ""
'.Transmit "Y"
'.StatusBar = "Waiting for Prompt: Do you want to continue processing this patient record? No// Y"
'.WaitForString "Y", NEVER_TIME_OUT, rcAllowKeystrokes
'.StatusBar = ""
' Press VtEnter (Simulate pressing the Enter key).
'.TransmitTerminalKey rcVtEnterKey
'.StatusBar = "Waiting for Prompt: Enter <RETURN> to continue."
'.WaitForString LF & "Enter <RETURN> to continue.", NEVER_TIME_OUT, rcAllowKeystrokes
'.StatusBar = ""
' Press VtEnter (Simulate pressing the Enter key).
'.TransmitTerminalKey rcVtEnterKey
' .StatusBar = "Waiting for Prompt: DO NOT TREAT OR SCHEDULE - MT REQUIRED! CALL X6769!"
' .WaitForString LF & " DO NOT TREAT OR SCHEDULE - MT REQUIRED! CALL X", NEVER_TIME_OUT, rcAllowKeystrokes
' .StatusBar = ""
' String omitted because it might change:
' .WaitForString "6769", NEVER_TIME_OUT, rcAllowKeystrokes
' .StatusBar = "Waiting for Prompt: DO NOT TREAT OR SCHEDULE - MT REQUIRED! CALL X6769!"
' .WaitForString "!", NEVER_TIME_OUT, rcAllowKeystrokes
' .StatusBar = ""
' Press VtEnter (Simulate pressing the Enter key).
'.TransmitTerminalKey rcVtEnterKey