Oper
Posts: 1195
|
Posted: 10/30/2010, 9:43 AM |
|
Do Custom Validation
Example:
Dont use the Property required Entry. use your own validation
like (CODECHARGE WAY): This Work ok
if isempty(Formobj.Field.value ) then
formobj.errors.adderror "The Content of NameofField is required"
end
Then you should Change the validation for:
if isempty(Formobj.Field.value) then
MyControlError Formobj,"The Content of NameofField is required",DBConnection1
end
.
.
.
.
function MyCOntrolError(vOBJ,vSTR,vCNN)
vobj.adderror.error vSTR
vcnn.execute "INSERT ....................................................................."
End Functon
that should work
NOTE: Check for typo or error i write on the forum without a test.
Also you could send the name of the form as a parameter so could track error for every other forms.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |