I am trying to create a report in Access 2002. Below is the SQL.
SELECT segment_detail.segment_no, Shops.County, segment_detail.shop, segment_detail.routes, sponsors.name
FROM Shops INNER JOIN (sponsors RIGHT JOIN segment_detail ON sponsors.sponsor_id = segment_detail.sponsor_id) ON Shops.Shop = segment_detail.shop
WHERE (((segment_detail.segment_no)="52695N00760173" Or (segment_detail.segment_no)="52695N01800248" Or (segment_detail.segment_no)="52695N00000080"));
My problem is I want report to show the data exactly following the order of segment_no in "where" part. Like below;
52695N00760173
52695N01800248
52695N00000080
but, when I run the report, the order of data is not like above. How to fix that?
Thanks.
SELECT segment_detail.segment_no, Shops.County, segment_detail.shop, segment_detail.routes, sponsors.name
FROM Shops INNER JOIN (sponsors RIGHT JOIN segment_detail ON sponsors.sponsor_id = segment_detail.sponsor_id) ON Shops.Shop = segment_detail.shop
WHERE (((segment_detail.segment_no)="52695N00760173" Or (segment_detail.segment_no)="52695N01800248" Or (segment_detail.segment_no)="52695N00000080"));
My problem is I want report to show the data exactly following the order of segment_no in "where" part. Like below;
52695N00760173
52695N01800248
52695N00000080
but, when I run the report, the order of data is not like above. How to fix that?
Thanks.