I'm writing a VBA function that removes any extra whitespace from text fields and I want to pass to that function the name of the field in a string. The problem I'm having is I have a recordset 'rsUpdate' and a string 'field' containing the field name and I want to do something like rsUpdate!field = [string with whitespace removed] but when I do this it looks for the field named field in the recordset and not the field whose name is equal to the value in the string 'field'. Is there a way to do this? I'm fairly new to VBA. Thanks.