Aqui tengo una aportacion muy buena...
En el Formulario crea un nuevo método igual le ponemos el nombre de DatosCorrectos, buscas el método y colocas el código siguiente:
&& Codigo por ISC Ernesto López Medina
&& México
c1PrimerObjeto=""
c2PrimerObjeto=""
ObjetosSinLlenar=0
lReturn = .T.
For nObjetos=1 To Thisform.ControlCount
cClase=Thisform.Controls(nObjetos).BaseClass
cObjeto=Thisform.Controls(nObjetos).Name
If cClase="Container"
For nObjetosContainer=1 To Thisform.Controls(nObjetos).ControlCount
c2Clase=Thisform.&cObjeto..Controls(nObjetosContainer).BaseClass
c2Objeto=Thisform.&cObjeto..Controls(nObjetosContainer).Name
campo=Upper(c2Clase)="TEXTBOX" .Or. Upper(c2Clase)="EDITBOX"
If campo .And. Empty(Thisform.&cObjeto..&c2Objeto..Value) .And. Thisform.&cObjeto..&c2Objeto..Comment="*"
ObjetosSinLlenar=ObjetosSinLlenar+1
If ObjetosSinLlenar=1
c1PrimerObjeto=cObjeto
c2PrimerObjeto=c2Objeto
Endif
Thisform.&cObjeto..&c2Objeto..BackColor= 12698111
Thisform.&cObjeto..&c2Objeto..FontBold=.T.
Else
If campo .And. .Not. Empty(Thisform.&cObjeto..&c2Objeto..Value) .And. Thisform.&cObjeto..&c2Objeto..Comment="*"
Thisform.&cObjeto..&c2Objeto..BackColor= 16777215
Thisform.&cObjeto..&c2Objeto..FontBold=.F.
Endif
Endif
Next
Endif
campo=Upper(cClase)="TEXTBOX" .Or. Upper(cClase)="EDITBOX"
If campo .And. Empty(Thisform.&cObjeto..Value) .And. Thisform.&cObjeto..Comment="*"
ObjetosSinLlenar=ObjetosSinLlenar+1
If ObjetosSinLlenar=1
c1PrimerObjeto=cObjeto
ENDIF
Thisform.&cObjeto..BackColor= 12698111
Thisform.&cObjeto..FontBold=.T.
Else
If campo .And. .NOT. Empty(Thisform.&cObjeto..Value) .And. Thisform.&cObjeto..Comment="*"
Thisform.&cObjeto..BackColor= 16777215
Thisform.&cObjeto..FontBold=.F.
Endif
Endif
Next
If ObjetosSinLlenar>0
lReturn=.F.
MESSAGEBOX("Hay "+ALLTRIM(STR(ObjetosSinLlenar))+" Campos Requeridos Vacios",0+64)
If Len(c2PrimerObjeto)>0
Thisform.&c1PrimerObjeto..&c2PrimerObjeto..SetFocus
Else
Thisform.&c1PrimerObjeto..SetFocus
ENDIF
Endif
Return lReturn
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
IF ThisForm.DatosCorrectos()
& Aqui escribes el código para manipular esos campos ;)
ENDIF
Un saludo desde México.
Nota: no importa que esto fue hace 12 años, yo lo encontré porque buscaba lo mismo hoy en el 2015 y este código lo desarrolle en base al código que publico Jesús Rojas.