I have this formula for my validation rule that will check for an existing record and then prevent the user from submitting a request if a record has been found. However, I'm having a syntax error when I try to check the syntax. Can someone help?
Here's the formula:
AND(
Certification__c != null,
Resource_Name__c != null,
Certification__c =
[SELECT Certification__c
FROM Voucher_Request__c
WHERE Resource_Name__c = :Resource_Name__c AND Certification_Result__c = 'Passed' LIMIT 1][0].Certification__c
)