RES
Posts: 21
|
| Posted: 10/04/2007, 1:45 PM |
|
I have a search box and an editable grid on the same page. When a search is completed I want to do an additional validation to ensure that the account number being entered isn't already activated. If it has been activated I want to add an error that says "account already activated."
I've tried this snippet of code in a few of the different events but I can't get the right outcome.
If (CCDLookup("ACCOUNT_MAIN", "PDACCOUNT_MAIN","ACCOUNT_MAIN=" & "'" & ccGetParam("s_account_number","") & "'", DBPOM)) <> "" then
CUSTOMER.Errors.Adderror("Account Already Exists")
End if
Any help is appreciated.
_________________
RES |