E
ericb
On the main form is a subform in datasheet view and 5 command buttons.
On the click of one button I have an event procedure that should run this
query :
SELECT DISTINCT [Client Extended].ID_client, [Client
Extended].date_ouverture, [Client Extended].nom_client, [Client
Extended].date_naissance, [Client Extended].couriel
FROM [Client Extended] RIGHT JOIN Produit ON [Client Extended].ID_client =
Produit.REF_client
WHERE ((([La première date :])<=[date_livraison]) AND
((Produit.date_livraison)<=[ La seconde date]))
GROUP BY [Client Extended].ID_client, [Client Extended].date_ouverture,
[Client Extended].nom_client, [Client Extended].date_naissance, [Client
Extended].couriel
ORDER BY [Client Extended].nom_client
The query is well assigned to a string variable.
I run this :
docmd.runsql mysql
and I always get this message :
Run-time error 2342 : A RunSQL action requires an argument consisting of an
SQL statement.
What to do ?
And mostly how do I get around this problem ?
Thank you for the help
On the click of one button I have an event procedure that should run this
query :
SELECT DISTINCT [Client Extended].ID_client, [Client
Extended].date_ouverture, [Client Extended].nom_client, [Client
Extended].date_naissance, [Client Extended].couriel
FROM [Client Extended] RIGHT JOIN Produit ON [Client Extended].ID_client =
Produit.REF_client
WHERE ((([La première date :])<=[date_livraison]) AND
((Produit.date_livraison)<=[ La seconde date]))
GROUP BY [Client Extended].ID_client, [Client Extended].date_ouverture,
[Client Extended].nom_client, [Client Extended].date_naissance, [Client
Extended].couriel
ORDER BY [Client Extended].nom_client
The query is well assigned to a string variable.
I run this :
docmd.runsql mysql
and I always get this message :
Run-time error 2342 : A RunSQL action requires an argument consisting of an
SQL statement.
What to do ?
And mostly how do I get around this problem ?
Thank you for the help