I think it's easier to describe than copy SQL's because i have the same problem 6 time over.
the data:
i have an 'industry' table that lists industry sectors for reference in an 'input' table as a lookup. of course, each sector has an autonumber associated with it, as a link to the field in the 'input' table. so...if i'm editing the 'input' table, i can use a droplist to choose one of the available sectors.
i have a query which selects info from the 'input' table, and (among other things) displays the industry sector for the filtered records. all that works fine. when i look at the query screen, the sector column displays the proper sector names, but when i set up a list box sourcing the query, the sector column displays the data from the autonumber column of tblIndSec instead of the sector column. it's the right data, but displaying the wrong column.
I have this same problem with 4 other columns in the list box.
in case you really want to read it, here's the SQL from the Search Query:
SELECT Input.Enquiry_Number, Input.Enquirer, Client_Info.Client_Name, Input.Project_Name, Input.Project_Detail, Input.Enquiry_Type, Input.Job_Type, Input.Medium, Input.Industry_Sector, Input.Date_Received, Input.Job_Number, Input.Quote_Date, Input.kw, Input.Value
FROM Client_Info INNER JOIN (Contact_Info INNER JOIN [Input] ON Contact_Info.Contact_ID = Input.Contact_ID) ON Client_Info.Client_ID = Contact_Info.Client_FK
WHERE (((Input.Enquirer) Like fCboSrch([Forms].[Enquiry]![frmSearch].[form]![cboEnqrrSrch])) AND ((Client_Info.Client_Name) Like "*" & fCboSrch([forms].[Enquiry]![frmsearch].[form]![txtClntSrch]) & "*") AND ((Input.Project_Name) Like "*" & fCboSrch([forms].[Enquiry]![frmsearch].[form]![txtNmSrch]) & "*") AND ((Input.Project_Detail) Like "*" & fCboSrch([forms].[Enquiry]![frmsearch].[form]![txtDtSrch]) & "*") AND ((Input.Enquiry_Type) Like fCboSrch([Forms].[Enquiry]![frmSearch].[form]![cboEnqyTypSrch])) AND ((Input.Job_Type) Like fCboSrch([Forms].[Enquiry]![frmSearch].[form]![cboJbTypSrch])) AND ((Input.Medium) Like fCboSrch([Forms].[Enquiry]![frmSearch].[form]![cboMedSrch])) AND ((Input.Industry_Sector) Like fCboSrch([Forms].[Enquiry]![frmSearch].[form]![cboSctrSrch])) AND ((Input.kw) Like fCboSrch([Forms].[Enquiry]![frmSearch].[form]![cboKwSrch])));
And the SQL for the listbox:
SELECT qrySrch.*
FROM qrySrch;
but.... the problem isn't in the query, as it displays fine when i open it. just the listbox won't display properly.