Hi everybody,
I have a Checkbox which is relationated with a column of a table in SQL Server. This column has bit as datatype
The Checkbox is a control into a Gallery. I build a formula for property Default of the Checkbox and it woeks correct
But when I aply the similar a formula for property OnSelect I receive and error message of SQL Server: "Cannot be converted to numeric"
I don't find where is the problem.
I add a document whit both formulas
Can someone help me?
Thanks
I have seen that happens the same with another field. I add a new document as example. In this example you can see that field is numeric but the SQL Server says it's no numeric. the problem isn't that field are bit o numeric. SQL Server return the same error
Any help will be welcome
Patch(
'[dbo].[EstadistiquesPartits]';
First(
Filter(
'[dbo].[EstadistiquesPartits]';
Temporada = GJornada.Selected.Temporada;
categoria = GJornada.Selected.Categoria;
idClub = GJornada.Selected.clubequiplocal;
DivisiĂł = GJornada.Selected.DivisiĂł;
Grup = GJornada.Selected.Grup;
Jornada = Value(NJornada.Text);
Partit = GJornada.Selected.idpartit;
Jugador = ThisItem.Jugador
)
);
{Convocat:If(Checkbox1.Value;1;0)}
)
Sorry,
I have change de formula:
Patch(
'[dbo].[EstadistiquesPartits]';
First(
Filter(
'[dbo].[EstadistiquesPartits]';
Temporada = GJornada.Selected.Temporada;
categoria = GJornada.Selected.Categoria;
idClub = GJornada.Selected.clubequiplocal;
DivisiĂł = GJornada.Selected.DivisiĂł;
Grup = GJornada.Selected.Grup;
Jornada = Value(NJornada.Text);
Partit = GJornada.Selected.idpartit;
Jugador = ThisItem.Jugador
)
);
{Convocat:If(Checkbox1.Value;1;0)}
)
But I have the same error
Change this section of code in your Default property
{Convocat: Checkbox1.Value}
Into this code
{Convocat: If(Checkbox1.Value, 1, 0)}
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hi @jclaraf
Although I haven't time to test this, could you try changing that particular part of you code to this, and see if that helps?
{Convocat: If(Checkbox1.Value, 1, 0)}
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional