The specified field name could refer to more than one table listed in the from clause of your SQL statment

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Leasha (anonymous_at_discussions.microsoft.com)
Date: 04/28/04


Date: Tue, 27 Apr 2004 17:09:23 -0700

In your crosstab query use the 'expr1: original field'
format on the field row of your query grid to rename one
of the ambiguous field references. Call it whatever you
like but then you'll need to use that name in your report.
example:

field: fldChemicalName
Table: tblChemicals

change it like so:
field: fldChemName: fldChemicalName
Table: tblChemicals

Now in the join you will have fldChemicalName from one
query and fldChemName from the other query.

Good luck and I hope this helps.

>-----Original Message-----
>I am joining a couple of crosstab queries in a query
which is the record source for a report.
>
>All of the queries run fine. However, the report is not
generating data. The output is an error message that "The
specified field name could refer to more than one table
listed in the from clause of your SQL statment."
>
>Problem is that the SQL statement in my queries do
specify the table name (e.g. [table name].[fieldname]) so
I am not sure how I can be any more specific?
>
>Any ideas?
>.
>



Relevant Pages

  • Re: **Please Help** Select Details.
    ... with a crosstab query you MUST declare your parameters and if ... Open the query in design mode ... In the queries i used the ...
    (microsoft.public.access.queries)
  • Re: Date parameters on crosstab report?
    ... with a crosstab query you MUST declare your parameters and if ... Open the query in design mode ... I have built my first crosstab query that works fine, ... In the past with ordinary select queries I have simply added Between ...
    (microsoft.public.access.reports)
  • Re: Calulating FY Totals
    ... the months in the crosstab query to reflect your fiscal year by changing the ... the query behind the report is not critical. ... The queries are using the "BookDate" to determine the fiscal year. ...
    (microsoft.public.access.queries)
  • Re: Use a parameter prompt with a crosstab query
    ... with a crosstab query you MUST declare your parameters and if ... other queries are used in the crosstab their parameters must also be ... Open the query in design mode ... > I have a crosstab query which displays all training dates for all our ...
    (microsoft.public.access.queries)
  • Re: Calulating FY Totals
    ... and I added the crosstab query to break it out by Month. ... > From what you are saying it sounds as though the report is hard coded to ... > The queries are using the "BookDate" to determine the fiscal year. ...
    (microsoft.public.access.queries)