Update query wont work?

T

Tony Williams

I have a simple update query here is the sql
UPDATE Semita INNER JOIN Test2 ON Semita.txtVRM = Test2.Field1 SET
Semita.txtStatus = [test2].[Field7];

But when I run it nothing happens. Anyone figure out what I'm doing wrong, I
thought this was relativly simple?
 
J

Jerry Whittle

Nothing happens? No error message? No "X number of records being updated"
message?

If that is so, it's possible that you have Set Warnings off somewhere and
it's hiding an error message that might tell what is wrong.

Try the following and see if any records are returned:

Select Semita.txtVRM, Test2.Field1
From Semita INNER JOIN Test2
ON Semita.txtVRM = Test2.Field1;

If not, try the following:

Select Semita.txtVRM, Test2.Field1
From Semita LEFT JOIN Test2
ON Semita.txtVRM = Test2.Field1;

Select Semita.txtVRM, Test2.Field1
From Semita RIGHT JOIN Test2
ON Semita.txtVRM = Test2.Field1;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top