yangchin78
MIS
Hi,
I want to sort a recordset on a certain field, but I want to remove any leading spaces in that field. I cannot get to the SQL statement that the recordset is based on so I was thinking of using .sort. While I can partially get it to work, I can't figure out how to remove the leading spaces. I tried rsRecordset.sort ="ltrim(Category) ASC" but this doesn't work. Is there any way to do what I want to do, without being able to change the original SQL statement. Thanks in advance.
I want to sort a recordset on a certain field, but I want to remove any leading spaces in that field. I cannot get to the SQL statement that the recordset is based on so I was thinking of using .sort. While I can partially get it to work, I can't figure out how to remove the leading spaces. I tried rsRecordset.sort ="ltrim(Category) ASC" but this doesn't work. Is there any way to do what I want to do, without being able to change the original SQL statement. Thanks in advance.