I have a table field with a field size of 10. It contains 5 letters and five trailing spaces. I am trying to load more data into the field but am getting an error telling the field size is to small so I am trying to delete the trailing spaces then add the new data. I am using the following code to delete the spaces but they are not deleted. Any suggestions are greatly appreciated.
Set rst = db.OpenRecordset("flkpTable", dbOpenDynaset)
rst("Field1") = RTrim(rst("Field1"))
Set rst = db.OpenRecordset("flkpTable", dbOpenDynaset)
rst("Field1") = RTrim(rst("Field1"))