I have a process that imports a file and matches the records to an existing table by a field "CheckNo" to update certain fields in the existing table. Both the imported and existing-table check numbers are defined as text data types.
The problem is that the imported check numbers are padded with zeros and the check numbers in the existing table may or may not have these leading zeros resulting in no matches some of the time. Changing the data type of the field in the existing table is not an option due to this being a third party software package.
I thought if I could convert both fields to a data type of numeric in the query itself that it would eliminate the leading zeros. But haven't been successful in accomplishing this. Suggestions?
The problem is that the imported check numbers are padded with zeros and the check numbers in the existing table may or may not have these leading zeros resulting in no matches some of the time. Changing the data type of the field in the existing table is not an option due to this being a third party software package.
I thought if I could convert both fields to a data type of numeric in the query itself that it would eliminate the leading zeros. But haven't been successful in accomplishing this. Suggestions?