J
Jonathan
I am trying to format a currency field in a DBW report by editing the SQL in
the wizard to the following:
SELECT *, Format(NetVal,'£#,##0.00) as NetVal1 FROM Vw_NOM_ANAL WHERE
(NominalCode = '1111' AND "Trading Year" = '1111')
But when I run the "verify query" I keep getting the following error
message: -
Server error: Unable to retrieve schema information from the query:
SELECT *, Format(NetVal,'£#,##0.00) as NetVal1 FROM Vw_NOM_ANAL WHERE
(NominalCode = '1111' AND "Trading Year" = '1111')
against a database using the connection string
DRIVER={SQL Server};SERVER=myservername;DATABASE=IT;UID=********
The following error message comes from the database driver software; it may
appear in a different language depending on how the driver is configured.
-------------------------------------------------------
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near
'1111'.
Source: Microsoft OLE DB Provider for ODBC Drivers
Number: -2147467259 (0x80004005)
Does anyone know what I have done wrong?
Tia
Jonathan
the wizard to the following:
SELECT *, Format(NetVal,'£#,##0.00) as NetVal1 FROM Vw_NOM_ANAL WHERE
(NominalCode = '1111' AND "Trading Year" = '1111')
But when I run the "verify query" I keep getting the following error
message: -
Server error: Unable to retrieve schema information from the query:
SELECT *, Format(NetVal,'£#,##0.00) as NetVal1 FROM Vw_NOM_ANAL WHERE
(NominalCode = '1111' AND "Trading Year" = '1111')
against a database using the connection string
DRIVER={SQL Server};SERVER=myservername;DATABASE=IT;UID=********
The following error message comes from the database driver software; it may
appear in a different language depending on how the driver is configured.
-------------------------------------------------------
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near
'1111'.
Source: Microsoft OLE DB Provider for ODBC Drivers
Number: -2147467259 (0x80004005)
Does anyone know what I have done wrong?
Tia
Jonathan