Hi there,
What error do you get? What exactly is the problem?
One thing that I can see is that CA is not enclosed in quotes. Change the last part to this:
Code:
If @State = 'CA'
Return @Tax
Else
Return 0
If that doesn't fix it, please be more specific.
Regards,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.