D
Dutchy
Following SQL statement returns a syntax error
SQL_mut = "SELECT MUTUAL.STRAAT, MUTUAL.PLAATS, MUTUAL.POSTNUMMER,
MUTUAL.NAAM FROM MUTUAL WHERE MUTUAL.NAAM = '" & TB_pat!BOND & "'; "
The output is
SELECT MUTUAL.STRAAT, MUTUAL.PLAATS, MUTUAL.POSTNUMMER, MUTUAL.NAAM FROM
MUTUAL WHERE MUTUAL.NAAM = 'FED.DER BEROEPSMUTUALITEITEN A'PEN';
The syntax error occurs because TB_pat!Bond for a record is 'FED.DER
BEROEPSMUTUALITEITEN A'PEN
the ' in A'PEN cause the problem
How to avoid the error??
Thanks
SQL_mut = "SELECT MUTUAL.STRAAT, MUTUAL.PLAATS, MUTUAL.POSTNUMMER,
MUTUAL.NAAM FROM MUTUAL WHERE MUTUAL.NAAM = '" & TB_pat!BOND & "'; "
The output is
SELECT MUTUAL.STRAAT, MUTUAL.PLAATS, MUTUAL.POSTNUMMER, MUTUAL.NAAM FROM
MUTUAL WHERE MUTUAL.NAAM = 'FED.DER BEROEPSMUTUALITEITEN A'PEN';
The syntax error occurs because TB_pat!Bond for a record is 'FED.DER
BEROEPSMUTUALITEITEN A'PEN
the ' in A'PEN cause the problem
How to avoid the error??
Thanks