D
DukeArgos
i'm a newb using Access 2002 and i can't figure this out.
I'm trying to create a report based upon a query. The query works jus
fine and sorts the data just the way i want it, but when i make
report for it -- the sort order isn't the same.
My query (which works fine) is this:
SELECT Structures.ADD_NUM, Structures.PREDIR, Structures.ST_NAME
Structures.ST_TYPE, Structures.NOTES, Structures.OADDRESS
Structures.OSPREFIX, Structures.OSNAME, Structures.OSTYPE
Structures.HOUSEHEAD, Structures.COMMUNITY
FROM Structures
WHERE (((Structures.JURISDICTION)="MY CITY"))
ORDER BY Structures.ST_NAME, Structures.ST_TYPE, Structures.PREDIR
Clng(Structures.ADD_NUM);
It is possible the sort order is off in the "report" because of th
"Structures.ADD_NUM" field which is a "text" field. In the "query"
am able to convert the text to numbers with the Clng function and thi
does make the query work just fine. However, when i make a repor
based upon the query, the resulting report converts back to a sor
relative to text.
i.e. i get the following incorrectly ordered results in the report:
1 MAIN ST
2 MAIN ST
22 MAIN ST
3 MAIN ST
44 MAIN ST
5 MAIN ST
6 MAIN ST
But as i said before, i am getting the correct sort order from runnin
the query by itself...
Does anyone know what i am doing wrong???
thanks for any help!!! :
I'm trying to create a report based upon a query. The query works jus
fine and sorts the data just the way i want it, but when i make
report for it -- the sort order isn't the same.
My query (which works fine) is this:
SELECT Structures.ADD_NUM, Structures.PREDIR, Structures.ST_NAME
Structures.ST_TYPE, Structures.NOTES, Structures.OADDRESS
Structures.OSPREFIX, Structures.OSNAME, Structures.OSTYPE
Structures.HOUSEHEAD, Structures.COMMUNITY
FROM Structures
WHERE (((Structures.JURISDICTION)="MY CITY"))
ORDER BY Structures.ST_NAME, Structures.ST_TYPE, Structures.PREDIR
Clng(Structures.ADD_NUM);
It is possible the sort order is off in the "report" because of th
"Structures.ADD_NUM" field which is a "text" field. In the "query"
am able to convert the text to numbers with the Clng function and thi
does make the query work just fine. However, when i make a repor
based upon the query, the resulting report converts back to a sor
relative to text.
i.e. i get the following incorrectly ordered results in the report:
1 MAIN ST
2 MAIN ST
22 MAIN ST
3 MAIN ST
44 MAIN ST
5 MAIN ST
6 MAIN ST
But as i said before, i am getting the correct sort order from runnin
the query by itself...
Does anyone know what i am doing wrong???
thanks for any help!!! :