Just realised that this formula will fail if there are any NULL values in the field. To get around this use:
stringvar name := trim({fullnamestring});
if length(name) = 0 then " " else
right (name, length(name) - instr(name, ",")) & " " & Left (name, instr(name, ",")-1)