Function works only for one field !?

Function works only for one field !?

Hello All

I created function to fill 2 fields with current infos in the report when button clicked to update instead of ask user to refill it , Function works well but with one field only , I don't know how to make it work for 2 fields 

when use " &" or other symbol error message appear , when use " +" no error but all string come in one field ,   Patient_Secludes 


void progress(int ID)
{
    (this one working) a = DrNote[ID == input.ID]. Patient_Secludes  ; 
    (No working even added after comma in openurl  function) b = DrNote[ID == input.ID].DoctorDrNote;
    Patient_Secludes = a;
    DoctorDrNote = b;
    openUrl("#Form:DrNote?Patient_Secludes=" +   Patient_Secludes   , "same window");
 
  
}