Sort a report by a hidden field in a combo-box

M

mkj

Hello,

I have a report which displays a list of devices, and their current
location. The table is:
Site, Description, Serial Number.

Site is a number which has a relationship to the SiteNo field in a Site table:
SiteNo
Name

This table is not arrange alphabetically. Record 1 may begin with "A", 2 may
begin with "Z", 3 may begin "M" for example.

The Site name in the report is a combo box, with two columns. The first
bound column is the site key. This column is hidden. The second column is the
true site name. When I order it by site, it is ordered by the hidden key, not
the visible name. Hence results do not come out alphabetically. Is there an
easy way to sort by the second column of a combobox?

Thanks,

Mike
 
D

Duane Hookom

I would add the Site table to your reports record source so you could:
- sort by SiteName (Name is not a good name for a field)
- replace the combo box with a text box bound to the SiteName field
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sort report by sum of counts 4
Combo Box on Report 10
Report, Combo Box 1
sort by sum of a field 1
Combo box to a report 4
sort chronologically when summing by month 2
Two combo box for a report 2
me.requery 3

Top