Something like:
llempty=.f.
for ia=1 to thisform.controlCount
if thisform.Controls(ia).BaseClass="Textbox" and empty(thisform.Controls(ia).Value)
llempty=.t.
EXIT
endif
endfor
if llempty
thisform.Controls(ia).setfocus
endif
>Is there a way I can have my app check to determine if any fields are left empty on a form. If it finds a field that is empty, the user shoudl be prompted and the textbox that the has that field as a control source should be setfocused. Any ideas?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only