M
Martin \(Martin Lee\)
Why this VBA SQL can't work :
DoCmd.RunSQL "delete * from CUSTABLE1 where
DEALERNAME=[ABCFORM].LIST65.value"
explain:
DEALERNAME is a field of the table CUSTABLE1
[ABCFORM] is a form's name
LIST65 is a list box in the form [ABCFORM], this LIST BOX is available for
multichoises.
for example, I have Dealer1, Dealer2, Dealer3 in the LIST65 ( LIST BOX ). I
choose Dealer1 and Dealer2 together (I use "Ctr - mouse click choice" to
multiple choice two of the dealer in the LIST65 box). And then I run the
SQL. I want the SQL to delete Dealer1 and Dealer2 records, leaving Dealer3
untouched.
Why my SQL can't work ? How to solve this problem ?
Thanks!
Martin LEE
2007-02-27
DoCmd.RunSQL "delete * from CUSTABLE1 where
DEALERNAME=[ABCFORM].LIST65.value"
explain:
DEALERNAME is a field of the table CUSTABLE1
[ABCFORM] is a form's name
LIST65 is a list box in the form [ABCFORM], this LIST BOX is available for
multichoises.
for example, I have Dealer1, Dealer2, Dealer3 in the LIST65 ( LIST BOX ). I
choose Dealer1 and Dealer2 together (I use "Ctr - mouse click choice" to
multiple choice two of the dealer in the LIST65 box). And then I run the
SQL. I want the SQL to delete Dealer1 and Dealer2 records, leaving Dealer3
untouched.
Why my SQL can't work ? How to solve this problem ?
Thanks!
Martin LEE
2007-02-27