Access_Person
Registered User.
- Local time
- Yesterday, 19:02
- Joined
- Aug 18, 2004
- Messages
- 14
I need to sort a report according to a value that is obtained in one of the text boxes in it. I have read on this forum that this is impossible and that a report can only be sorted based on the fields available in the table/query it is based on. Is this true?
I also read that I must build another query with this text box already in it and then somehow base my report on that new query too so that the value can be used to sort it.
I started building the query (still having no idea how I would add it to the report) but ran into a problem.
In my query I insert the following into one of the fields :
I have 17 companies in the query (these come from one table) and must count how many times each of them appear in a different table ("Applicants") however Access won't let me use a criteria from this query ("Company Name") to count the entries in the other table.
This exact same method worked just fine in 1) a form and 2) the report. But a query which I must create in order to let me sort the report won't let me do it.
Thanks in advance,
Frustrated Access user
BTW, the error message is the following one: "The expression you entered as a query parameter produced this error: 'MS A can't find the name 'Company Name' you entered in the expression' "
I also read that I must build another query with this text box already in it and then somehow base my report on that new query too so that the value can be used to sort it.
I started building the query (still having no idea how I would add it to the report) but ran into a problem.
In my query I insert the following into one of the fields :
Code:
TotalFromRecruiter: DCount("[Source Name]","Applicants","[Source Name]=[Company Name]")
I have 17 companies in the query (these come from one table) and must count how many times each of them appear in a different table ("Applicants") however Access won't let me use a criteria from this query ("Company Name") to count the entries in the other table.
This exact same method worked just fine in 1) a form and 2) the report. But a query which I must create in order to let me sort the report won't let me do it.
Thanks in advance,
Frustrated Access user
BTW, the error message is the following one: "The expression you entered as a query parameter produced this error: 'MS A can't find the name 'Company Name' you entered in the expression' "