Hi, I have a problem CR keep saying me This field name is not known
I use a query that can return null fields ...
datcmd1.CommandText = "SELECT Meci_Program.ID, Meci_Program.ID_Meci, Meci_Program.ID_Etapa, Meci_Program.Pozitie_in_etapa, Meci_Program.Jucat, Meci_Program.Data_Meci, Echipe.Nume_Echipa as Echipa1, Echipe_1.Nume_Echipa as Echipa2, Etape.Data_Etapa, Meci_Statistica.Gol1, Meci_Statistica.Gol2 " & _
"FROM (((Echipe INNER JOIN Meci_Program ON Echipe.ID = Meci_Program.ID_Echipa1) INNER JOIN Echipe AS Echipe_1 ON Meci_Program.ID_Echipa2 = Echipe_1.ID) INNER JOIN Etape ON Meci_Program.ID_Etapa = Etape.Nr_Etapa) LEFT JOIN Meci_Statistica ON Meci_Program.ID_Meci = Meci_Statistica.ID_Meci;"
I don't know if this is relevant but I counted 11 fields just like in my .ttx file that I use for mapping the recordset on the report.
All that I want to know if why does the CR says that stupid thing
I use a query that can return null fields ...
datcmd1.CommandText = "SELECT Meci_Program.ID, Meci_Program.ID_Meci, Meci_Program.ID_Etapa, Meci_Program.Pozitie_in_etapa, Meci_Program.Jucat, Meci_Program.Data_Meci, Echipe.Nume_Echipa as Echipa1, Echipe_1.Nume_Echipa as Echipa2, Etape.Data_Etapa, Meci_Statistica.Gol1, Meci_Statistica.Gol2 " & _
"FROM (((Echipe INNER JOIN Meci_Program ON Echipe.ID = Meci_Program.ID_Echipa1) INNER JOIN Echipe AS Echipe_1 ON Meci_Program.ID_Echipa2 = Echipe_1.ID) INNER JOIN Etape ON Meci_Program.ID_Etapa = Etape.Nr_Etapa) LEFT JOIN Meci_Statistica ON Meci_Program.ID_Meci = Meci_Statistica.ID_Meci;"
I don't know if this is relevant but I counted 11 fields just like in my .ttx file that I use for mapping the recordset on the report.
All that I want to know if why does the CR says that stupid thing