A
Afrosheen via AccessMonster.com
Here's what I did John, First I copied and pasted the sql6 in the new query.
I had about 3-4 records [super1] set to the sdr555. When I looked at it in
datasheet view it only showed 1 record. When I ran the query ! it did clear
out the first record. There were no more records in the query. When I looked
at the rest of the records in the table, the other records still had the
sdr555.
This was the results of the ?sql6
Update tblMain set super1 = Null where super1 ="sdr555" And Not (tblMain.
SupMan) = true
I had about 3-4 records [super1] set to the sdr555. When I looked at it in
datasheet view it only showed 1 record. When I ran the query ! it did clear
out the first record. There were no more records in the query. When I looked
at the rest of the records in the table, the other records still had the
sdr555.
This was the results of the ?sql6
Update tblMain set super1 = Null where super1 ="sdr555" And Not (tblMain.
SupMan) = true
[quoted text clipped - 4 lines]I put the extra comma in.
dtm.Execute sql6, , adCmdText + adExecuteNoRecordsWhen it did execute I checked the superid of an employee and the superid was
still there in table view.
Perplexing!
Try typing
?sql6
in the immediate window. Copy and paste the SQL string into the SQL window of
a new query. Open it in datasheet view; does it display the records you
expect? If you execute it by clicking the ! icon, does it give an error
message?