Etxezarreta
Member
- Local time
- Today, 11:29
- Joined
- Apr 13, 2020
- Messages
- 175
Hello,
I have been trying to get rid of all the calculated fields of my tables, in order to run "table creating"queries:
Now I can't link one of my tables to the other ones (the calculated field extracted one part of the zip code that became the link) so no way to fully use the Access query builder. I will use the "left" function to extract the two digits of the zip, and will use an inner join query to obtain the name of the "departement" (french equivalent of a county).
Problem: I need to deal with the two other INNER JOIN I had before, and that worked well, here is the code:
I tried to remove "("and ")", to move them etc.. to change the order, but since I dont really understand the code, I need some help, if possible.
Thanks a lot in advance.
str_SQL = "SELECT t_ListeContacts.[Nom_contact], t_ListeContacts.[Prenon_contact]," & _
"t_ListeContacts.[Nom_structure], t_ListeContacts.[Fonction], t_StatutJuridiqueSoignants.StatutJuridiqueSoignant, " & _
"t_IntitulesProfession.Profession, t_Departements.[Departement], t_ListeContacts.[Ville] FROM t_StatutJuridiqueSoignants " & _
"INNER JOIN (t_IntitulesProfession INNER JOIN (t_ListeContacts INNER JOIN (t_Departements ON t_IntitulesProfession.ID_Profession = t_ListeContacts.FK_Profession) " & _
"ON t_Departements.CodeDepartement = Left(t_ListeContacts.CP,2) ON t_StatutJuridiqueSoignants.ID_StatutJuridiqueSoignant = t_ListeContacts.FK_Statut_juridique"
Etxe.
I have been trying to get rid of all the calculated fields of my tables, in order to run "table creating"queries:
Now I can't link one of my tables to the other ones (the calculated field extracted one part of the zip code that became the link) so no way to fully use the Access query builder. I will use the "left" function to extract the two digits of the zip, and will use an inner join query to obtain the name of the "departement" (french equivalent of a county).
Problem: I need to deal with the two other INNER JOIN I had before, and that worked well, here is the code:
I tried to remove "("and ")", to move them etc.. to change the order, but since I dont really understand the code, I need some help, if possible.
Thanks a lot in advance.
str_SQL = "SELECT t_ListeContacts.[Nom_contact], t_ListeContacts.[Prenon_contact]," & _
"t_ListeContacts.[Nom_structure], t_ListeContacts.[Fonction], t_StatutJuridiqueSoignants.StatutJuridiqueSoignant, " & _
"t_IntitulesProfession.Profession, t_Departements.[Departement], t_ListeContacts.[Ville] FROM t_StatutJuridiqueSoignants " & _
"INNER JOIN (t_IntitulesProfession INNER JOIN (t_ListeContacts INNER JOIN (t_Departements ON t_IntitulesProfession.ID_Profession = t_ListeContacts.FK_Profession) " & _
"ON t_Departements.CodeDepartement = Left(t_ListeContacts.CP,2) ON t_StatutJuridiqueSoignants.ID_StatutJuridiqueSoignant = t_ListeContacts.FK_Statut_juridique"
Etxe.