I am trying to search a surname that start from Mc' or O' but everytime i type that in a text box and click the command search i recieved a message
Syntax error in string in query expression 'INDIVIDUAL_CLIENT.surname like 'O" ORDER BY INDIVIDUAL_CLIENT.surname;"
my coding:
StrSQL = "SELECT INDIVIDUAL_CLIENT.CLIENT_ID,"
StrSQL = StrSQL & " INDIVIDUAL_CLIENT.SURNAME & ', ' & INDIVIDUAL_CLIENT.GIVEN_NAME AS CLIENT_FULL_NAME,"
StrSQL = StrSQL & " INDIVIDUAL_CLIENT.DOB, INDIVIDUAL_CLIENT.FILE_NUMBER"
StrSQL = StrSQL & " FROM INDIVIDUAL_CLIENT"
StrSQL = StrSQL & StrWhere
StrSQL = StrSQL & " ORDER BY INDIVIDUAL_CLIENT.SURNAME"
StrSQL = StrSQL & ";"
please help me.......
Syntax error in string in query expression 'INDIVIDUAL_CLIENT.surname like 'O" ORDER BY INDIVIDUAL_CLIENT.surname;"
my coding:
StrSQL = "SELECT INDIVIDUAL_CLIENT.CLIENT_ID,"
StrSQL = StrSQL & " INDIVIDUAL_CLIENT.SURNAME & ', ' & INDIVIDUAL_CLIENT.GIVEN_NAME AS CLIENT_FULL_NAME,"
StrSQL = StrSQL & " INDIVIDUAL_CLIENT.DOB, INDIVIDUAL_CLIENT.FILE_NUMBER"
StrSQL = StrSQL & " FROM INDIVIDUAL_CLIENT"
StrSQL = StrSQL & StrWhere
StrSQL = StrSQL & " ORDER BY INDIVIDUAL_CLIENT.SURNAME"
StrSQL = StrSQL & ";"
please help me.......