Update Statment Error Not the proper result

KWHAT

Registered User.
Local time
Today, 00:56
Joined
Dec 7, 2011
Messages
19
i have a uniqueZip table which has a set of unique rows with a certain code, now my goal is to update the Route tbl to have the match code by comparing the rows from one table to the other.

This is my sql statement however this does not change any rows even though there is matching data. Can anyone help me. i attached a image of the tables and fields.


UPDATE [Route tbl], UniqueZips
SET [Route tbl].CODE = [UniqueZips]!
Code:
WHERE ((([Route tbl].CODE)=(StrComp([Route tbl]![WINDOW 1]  ,[UniqueZips]![WINDOW 1]) & StrComp([Route tbl]![WINDOW 2]  ,[UniqueZips]![WINDOW 2]) & StrComp([Route tbl]![WINDOW 3]  ,[UniqueZips]![WINDOW 3]) & StrComp([Route tbl]![WINDOW 4]  ,[UniqueZips]![WINDOW 4]) & StrComp([Route tbl]![WINDOW 5]  ,[UniqueZips]![WINDOW 5]))));
 

Attachments

  • my tables.jpg
    my tables.jpg
    95.6 KB · Views: 88
Your right my criteria is wrong i am not producing any results from it, how can i fix this ?
 
There's not much I can do to help, but like I said your table design is flawed so if you can fix that the UPDATE statement will be much easier to perform.
 

Users who are viewing this thread

Back
Top Bottom