This is the error and also it get mixed when I try with others fields too
Technical information
Error number -2147217900
Error description [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'NumeroContrato'.
URL /test/test3/tbContratos_list.asp
SQL query
select [NumeroContrato], [NumeroAgendamiento], [UsuarioCobranzas], [NombreDestinatario], [FechaVenta], [FechaEntrega], [CodigoAsesor], [NombreEnvio], [DireccionEnvio], [CiudadEnvio], [EstadoRegionEnvio], [CodigoPostalEnvio], [PaisEnvio], [TelefonoContacto], [InstruccionesEspeciales], [PrecioContado], [CostoEnvio], [Impuesto], [TotalContado], [PrePaidAmount], [PrePaidMetodo], [CODAmount], [CODMetodo], [DownPayment], [AFinanciar], [Interes], [BalanceTotal], [NumeroCuotas], [MontoCuota], [TotalAPagar], [FormaPago], [AreaVentas], [Status], [FechaSolicitudDespacho], [EntidadDestino], [EmailDestino], [UsuarioDespacho], [ShipVia], [Puntaje], [UsuarioVerificacion]
From [dbo].[tbContratos]
where upper([NumeroContrato] )=upper('MOR0000004') NumeroContrato