OK here's my situation.
Table 1 lists PANELS with 'HORIZ' field with a value of either Y or N.
Table 2 lists CIRCUITS for each PANEL. Each CIRCUIT is sequentially numbered 1-42 in FIELD A below.
FIELD A CIRCUIT FIELD B
1 X 1
2 XX 4
3 XXX 2
4 XXXX 5
5 XXXXXX 3
I want to sort CIRCUITS based on the HORIZ field, where if HORIZ = "Y", I want CIRCUITS sorted by FIELD A ascending. However, if HORIZ = "N", I want CIRCUITS sorted by FIELD B ascending, where odd-numbered CIRCUITS will be listed first. How can I do this in a query?
Thanks in advance.
Table 1 lists PANELS with 'HORIZ' field with a value of either Y or N.
Table 2 lists CIRCUITS for each PANEL. Each CIRCUIT is sequentially numbered 1-42 in FIELD A below.
FIELD A CIRCUIT FIELD B
1 X 1
2 XX 4
3 XXX 2
4 XXXX 5
5 XXXXXX 3
I want to sort CIRCUITS based on the HORIZ field, where if HORIZ = "Y", I want CIRCUITS sorted by FIELD A ascending. However, if HORIZ = "N", I want CIRCUITS sorted by FIELD B ascending, where odd-numbered CIRCUITS will be listed first. How can I do this in a query?
Thanks in advance.