G
Guest
I want to add a field to a select query that will number a set of grouped
records from two related tables.
Table A has a list of locations with addresses etc, table B is related via a
lookup field and allows the selection of city names. I want my query to not
only sort the output alphabetically I also want it to number the sites which
are located in that city from 1 to n (n being the total number of locations).
So if city X has five locations city Y has 2 locations the query should
include a field as follows:
City Location #
X 1
X 2
X 3
X 4
X 5
Y 1
Y 2
Is there an expression I can use to calculate this?
records from two related tables.
Table A has a list of locations with addresses etc, table B is related via a
lookup field and allows the selection of city names. I want my query to not
only sort the output alphabetically I also want it to number the sites which
are located in that city from 1 to n (n being the total number of locations).
So if city X has five locations city Y has 2 locations the query should
include a field as follows:
City Location #
X 1
X 2
X 3
X 4
X 5
Y 1
Y 2
Is there an expression I can use to calculate this?