Update exportRecords.R

Make an adjustment to the field_names for when the forms argument is used.  This ensure that only requested fields are exported and prevents a failure in fieldToVar