Use .field to access individual fields in a dialog variable. 


dlg.LastName$

dlg.ZipCode