conditional set focus

  • Thread starter Thread starter Clan McCreery
  • Start date Start date
C

Clan McCreery

Hello

I have a form which acts as a time clock, when a
user "clocks in" the time is entered in a field, the field
is then disabled so changes cannot be made to the entry.
However, when the user reloads the form at the end of the
day to "clock out", the clock in field is enabled, focused
and can be changed.
How do i set focus for the next blank field, bypassing
focus on fields which already have data? I tried an if
then statement but to no avail.

Thanks!!

Clan McCreery
 
Start your field out as disabled and on the "on load" event of the form you
can set the property of that field to enabled if it is empty.
ex:
if field=null then
let field.enabled=true
endif
 
Back
Top