C
Céline Brien
Hi everybody,
A table of sales, data from an outside database.
In the field SMan, codes have to be change.
John is now reponsible of Ted and Paul territory.
I know how to create an update query.
But, I have at least 16 queries to do.
Can I use SQL codes to execute these update one after another ???
Thank you for your help,
Céline
--------------------------------------------------------
Sub UddateSMan
UPDATE Ventes SET Ventes.Vendeur = "JOH"
WHERE (((Ventes.Vendeur)="TED" Or (Ventes.Vendeur)="PAU"));
Next
UPDATE Ventes SET Ventes.Vendeur = "FRA"
WHERE (((Ventes.Vendeur)="MAR" Or (Ventes.Vendeur)="BAR"));
Next
End sub
A table of sales, data from an outside database.
In the field SMan, codes have to be change.
John is now reponsible of Ted and Paul territory.
I know how to create an update query.
But, I have at least 16 queries to do.
Can I use SQL codes to execute these update one after another ???
Thank you for your help,
Céline
--------------------------------------------------------
Sub UddateSMan
UPDATE Ventes SET Ventes.Vendeur = "JOH"
WHERE (((Ventes.Vendeur)="TED" Or (Ventes.Vendeur)="PAU"));
Next
UPDATE Ventes SET Ventes.Vendeur = "FRA"
WHERE (((Ventes.Vendeur)="MAR" Or (Ventes.Vendeur)="BAR"));
Next
End sub