Hi all,
Here is my problem, I have the following tables
1. TblStore [Store], [Rank]
2. TblItem [UPC], [Rank], [Store](This is null)
TblStore Example
[Store] [Rank]
1000 A
1001 B
1002 A
1003 B
1004 B
TblItem Example
[UPC] [Rank] [Store]
123 A
456 A
789 A
012 B
345 B
678 B
912 B
I need the Tblstore to loop through the same ranked records in the tblItem updating the Store field with the Store numbers from the Tblstore.
Final example
[UPC] [Rank] [Store]
123 A 1000
456 A 1002
789 A 1000
012 B 1001
345 B 1003
678 B 1004
912 B 1001
Any help would be great, I know a little sql but not enough to start this loop statement.
Thanks all!
Here is my problem, I have the following tables
1. TblStore [Store], [Rank]
2. TblItem [UPC], [Rank], [Store](This is null)
TblStore Example
[Store] [Rank]
1000 A
1001 B
1002 A
1003 B
1004 B
TblItem Example
[UPC] [Rank] [Store]
123 A
456 A
789 A
012 B
345 B
678 B
912 B
I need the Tblstore to loop through the same ranked records in the tblItem updating the Store field with the Store numbers from the Tblstore.
Final example
[UPC] [Rank] [Store]
123 A 1000
456 A 1002
789 A 1000
012 B 1001
345 B 1003
678 B 1004
912 B 1001
Any help would be great, I know a little sql but not enough to start this loop statement.
Thanks all!