Timing Issues

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this Macro Running with a Button. The Button refers to VB Code which
does an evaluation and decides if it should run the code. When The Marco runs
I am experiencing timing problems -- not always (just when the comptuer gets
ahead of itself). Sometimes its goes past the SendKeys Pass command and goes
to the Time_In control and puts both, or just time in. Since they are both
required fields, this is causing the Database to not work all the time. Can
someone please tell me what I am doing wrong or help me write the VB
Equivalent (all I know are Macros). Thank you so much!

GoToControl ReQ_Both
SendKeys Pass Wait=Yes
GoToControl Time_In
SendKeys =()Now Wait=Yes
SendKeys {Tab} Wait=Yes
GoToRecord New
RunMacro UJclIn
 
It appears that you are using SendKeys to type a value into the control.
Instead of SendKeys, why not just set the value of the control using the
SetValue action? The SetValue action will let you specify which control to
place the value in, so you don't need to select the control first.
 
Back
Top