Here is what I tried, which did not work:
z := x + I*y
f[z_] := z^2 + 3*z + 2
I was hoping this would take the partial derivative with respect to x.
As a side note, does anyone know why you need the underscore in f[z_]?