Can anyone please tell me if there is an issue with the following IIF statement that I have in a query?
For some reason it's not working though it did before. It's only stopped working since I renamed a couple of the fields that are stated in the statement though I renamed these in the statement too.
For some reason it's not working though it did before. It's only stopped working since I renamed a couple of the fields that are stated in the statement though I renamed these in the statement too.
Do the fields stated in the query have to be in a specific order in the table? Do they have to be adjacent?IIf(InStrRev([Referral1] & ("/"+[Referral2]) & ("/"+[Referral3]) & ("/"+[Referral4]) & ("/"+[Referral5]) & ("/"+[Referral6]),"/")=0,[Referral1],Mid([Referral1] & ("/"+[Referral2]) & ("/"+[Referral3]) & ("/"+[Referral4]) & ("/"+[Referral5]) & ("/"+[Referral6]),InStrRev([Referral1] & ("/"+[Referral2]) & ("/"+[Referral3]) & ("/"+[Referral4]) & ("/"+[Referral5]) & ("/"+[Referral6]),"/")+1))