I have this code and it runs this winbatch program. I want it to loop thru the records in this subform. But its running to fast, I thought the timerinterval would slow it down but it is not working. Also when the code gets to the last line when I want it to stop where theres a false (its a check box column) it says copy is not available, probably cause the field Im saying to copy from is blank. How can I fix that and to pause till the exe program finishes doing its thing.
Dim stAppName As String
Do
Forms![frmClaimHead-Line_RR]![frmMASHead_RR subform].SetFocus
DoCmd.GoToControl "claimhead"
DoCmd.RunCommand acCmdCopy
'This Runs the Macro exe application MASCLAIM.exe
stAppName = "C:\Documents and Settings\023Q\Desktop\MASClaim.exe"
Call Shell(stAppName, 1)
Me.TimerInterval = 50000 ' milliseconds -> 1 second
DoCmd.GoToRecord , , acNext
Loop Until Forms![frmClaimHead-Line_RR]![frmMASHead_RR subform]![APPEALED] = False
Dim stAppName As String
Do
Forms![frmClaimHead-Line_RR]![frmMASHead_RR subform].SetFocus
DoCmd.GoToControl "claimhead"
DoCmd.RunCommand acCmdCopy
'This Runs the Macro exe application MASCLAIM.exe
stAppName = "C:\Documents and Settings\023Q\Desktop\MASClaim.exe"
Call Shell(stAppName, 1)
Me.TimerInterval = 50000 ' milliseconds -> 1 second
DoCmd.GoToRecord , , acNext
Loop Until Forms![frmClaimHead-Line_RR]![frmMASHead_RR subform]![APPEALED] = False