cheerfulskeptic
Programmer
Hello,
I have a CR8 connected to an SQL server database.. I have a table called SPECS with the primary key being SPECID (nvarchar 10) and a field SPECDESC (nvarchar 255). the SPECID contains a number incrementing for each item inserted. the problem is that we have to sort the data in the crystal report based on SPECID, but because of the nvarchar type of the field, the order is getting messed up. for example, if we have SPECID in 5 fields of 9905,9906, 9907, 9908 and 10035, the 10035 is showing up before the 9905.
any ideas how to convert the nvarchar to INT and sort it int he crystal report?
thanks
I have a CR8 connected to an SQL server database.. I have a table called SPECS with the primary key being SPECID (nvarchar 10) and a field SPECDESC (nvarchar 255). the SPECID contains a number incrementing for each item inserted. the problem is that we have to sort the data in the crystal report based on SPECID, but because of the nvarchar type of the field, the order is getting messed up. for example, if we have SPECID in 5 fields of 9905,9906, 9907, 9908 and 10035, the 10035 is showing up before the 9905.
any ideas how to convert the nvarchar to INT and sort it int he crystal report?
thanks