D
Don K
Information from a number of fields on a web page is saved in an Excel
Spreadsheet. This spreadsheet is then imported in an Access 2003 table using
the DoCmd.TransferSpreadsheet method. All the fields in the spreadsheet are
text fields, and all of them have a trailing space after the text. I have
tried to strip the trailing spaces using the trim function as I need to
match some of these text fields to existing text in other tables. However I
am finding that the two fields are not matching, most likely due to the
trailing spaces. I have seen posts that mention an Access bug in the trim
function when a reference is missing, but I do not have that issue. I have
also tried searching at the end of the string for " " or chr(32), and
stripping it that way, but neither try will strip the trailing space. This
seems trivial, what am I missing? Is there an easier way?
Spreadsheet. This spreadsheet is then imported in an Access 2003 table using
the DoCmd.TransferSpreadsheet method. All the fields in the spreadsheet are
text fields, and all of them have a trailing space after the text. I have
tried to strip the trailing spaces using the trim function as I need to
match some of these text fields to existing text in other tables. However I
am finding that the two fields are not matching, most likely due to the
trailing spaces. I have seen posts that mention an Access bug in the trim
function when a reference is missing, but I do not have that issue. I have
also tried searching at the end of the string for " " or chr(32), and
stripping it that way, but neither try will strip the trailing space. This
seems trivial, what am I missing? Is there an easier way?