Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax question

Status
Not open for further replies.

PikPim

Programmer
Jul 25, 2006
15
CA
Hi guys, I need to input this string as a parameter for the function dcount(it's in french but the important is the syntax):
str = "[Nom_service_affaire]='Taxe sur les primes d'assurance'"

The problem is that there are 3 " ' " and doesn't seem to like that :p it says that i got a missing argument or something like that... the problem is that i can'T remove the ' between "d" and "assurance"! It has to stay this way! :S anybody got an idea?
 
Make the d'assurance d''assurance. That is, double single quotes, or automatic:
Replace(strMatchString,"'","''")
 
It doesn't work! all it does is put the rest of the code in commentaries (green) :S
 
And this (as already suggested) ?
[tt]str = "[Nom_service_affaire]='Taxe sur les primes d''assurance'"[/tt]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top