S Sergio Registered User. Local time Today, 23:20 Joined Feb 28, 2002 Messages 45 Mar 10, 2026 #1 I have the above code to insert an access quey in a word document, but the IdCliente filter doesn´t work. I nedd too SELECT only few fields from the query GarantCont'
I have the above code to insert an access quey in a word document, but the IdCliente filter doesn´t work. I nedd too SELECT only few fields from the query GarantCont'
C CJ_London Super Moderator Staff member Local time Today, 23:20 Joined Feb 19, 2013 Messages 17,827 Mar 10, 2026 #2 What happens if you remove the where clause? The sql structure doesn’t look right to me but perhaps it is valid when constructed in word?
What happens if you remove the where clause? The sql structure doesn’t look right to me but perhaps it is valid when constructed in word?
The_Doc_Man Immoderate Moderator Staff member Local time Today, 17:20 Joined Feb 28, 2001 Messages 30,934 Mar 10, 2026 #3 I suspect that the quoting is wrong in the SQL because the WHERE clause appears to be outside of the SELECT.
I suspect that the quoting is wrong in the SQL because the WHERE clause appears to be outside of the SELECT.
S Sergio Registered User. Local time Today, 23:20 Joined Feb 28, 2002 Messages 45 Mar 10, 2026 #4 CJ_London said: What happens if you remove the where clause? The sql structure doesn’t look right to me but perhaps it is valid when constructed in word? Click to expand... If I remove or not "where" clause the table appears with all the registers
CJ_London said: What happens if you remove the where clause? The sql structure doesn’t look right to me but perhaps it is valid when constructed in word? Click to expand... If I remove or not "where" clause the table appears with all the registers
Gasman Enthusiastic Amateur Local time Today, 23:20 Joined Sep 21, 2011 Messages 17,539 Mar 10, 2026 #5 Have you tried standard concatenation and just the required fields instead of * ?
S Sergio Registered User. Local time Today, 23:20 Joined Feb 28, 2002 Messages 45 Mar 10, 2026 #6 The_Doc_Man said: I suspect that the quoting is wrong in the SQL because the WHERE clause appears to be outside of the SELECT. Click to expand... I found the right code, tks
The_Doc_Man said: I suspect that the quoting is wrong in the SQL because the WHERE clause appears to be outside of the SELECT. Click to expand... I found the right code, tks
Gasman Enthusiastic Amateur Local time Today, 23:20 Joined Sep 21, 2011 Messages 17,539 Mar 10, 2026 #7 So good, it had to be posted three times?