Hi,
I’m tring to create a master/detail application but the key in the master table is a text (A01 in my data). Based on error given bellow, the problem is pass text as a parameter to to detail grid
Se produjo un error al acceder a la base de datos
SQLState: 42S22 Error Code: 207 Message: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid column name ‘A01’.
select count(*) from dbo.destino where (codigoSucursal = A01)
A01 is the paramter I want to pass to the grid detail, but I think since is a text needs use this format ‘A01’, how to add ’ ’ to the parameter? or another way to pass text parameter?
Thanks and greetings from Ecuador