Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report won't sort!

Status
Not open for further replies.

adamdunko

Technical User
Apr 18, 2003
10
US
My issue is as follows:

I have a simple report based on a query of 2 associated tables. There are 5 fields, Doc#, IssueDate, Title, Author, Remarks. All fields come from one table, with the exception of Title. These fields are being reported in a straight line under detail of the report. When I choose sortign & grouping, for some reason it is only allowing me to sort the report by IssueDate, Author, and Remarks. I need it to sort by Doc#. I cannot figue out why it is not allowing me to sort this simple report by the other fields.

Any help woul dbe appreciated.
 
Access won't let you group or sort on a Hyperlink type field, sorry.

To get round this problem, modify your query to include a version of the hyperlink field that's converted to a string. You also need to allow for null values, hence the Nz function. anyway, you can then sort/group on this converted string instead. here's an exampel query:
Code:
SELECT [Doc#], [IssueDate], [Title], [Author], [Remarks], CStr(Nz([Doc#],"")) AS TextDocNum
FROM......
You can then sort/group on TextDocNum - for best results, you might want to add TextDocNum to your report but hide it, then show Doc# so you get the hyperlink formatting.

Hope this helps.

[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top