Re: 2 table Query Error

From: Ken Snell [MVP] (kthsneisllis9_at_ncoomcastt.renaetl)
Date: 11/26/04


Date: Fri, 26 Nov 2004 15:40:07 -0500

Post the SQL statement of the query that is giving you this error. Likely
you need to add the table name in front of the field name in a WHERE clause
or an ORDER BY clause.

-- 
        Ken Snell
<MS ACCESS MVP>
"GRCC" <grccnews@nospamadelphia.net> wrote in message
news:uE3xqX%230EHA.2620@TK2MSFTNGP10.phx.gbl...
> The specified field <number> could refer to more than one table listed in
> the FROM clause of your SQL statement. (Error 3079)
> This is the error message I get. I have a query that works nicely pulling
> info from one table. I need to add a second table from the same DB to pull
2
> more items. It is a Country club member accounting database. When I add
the
> 2nd table and specify the 2 fields I need (the relationships are correct,
> member ID to member ID) I get the afore memtioned error message. The 2
> tables both have a number feild (same data) is this the problem? I have
> tried adding the number field a second time, each one indicating which
table
> to pull from. So why ? I am beginning to think that the program is flawed
> and poorly written because first theused number as a field, but to make it
> worse they used number as a field in 2 different tables. Any Ideas?
> Thanks So Much
> GRCC
>
>


Relevant Pages

  • Re: Inline CrossTab Query
    ... The SQL I used I just copied from the three queries in the Query Design ... >> I am trying to produce a SQL statement to bring together 3 queries ... >> I am getting an error message that says there is an Error in the ...
    (microsoft.public.access.queries)
  • Re: Query Help
    ... error message, so I know what i want I just don't know how to get there. ... "Jeff Boyce" wrote: ... if I could get you to post back the SQL statement that your query ...
    (microsoft.public.access.queries)
  • Re: Syntax error in INSERT INTO statement.
    ... Still get the same error message in Access. ... This is the query I ran in Access, that I copied from browser. ... > Run the page and look at the sql statement in the browser window. ...
    (microsoft.public.scripting.vbscript)
  • Re: Update query and filter by selection
    ... The error message indicates that there is something in the SQL statement ... e.g. a misspelt field name. ... it runs the query directly from the code, ...
    (microsoft.public.access.queries)
  • Re: Error using " in .open with ADODB.Recordset
    ... recordset but I'm getting hung up on the SQL statement. ... query that has a string as a condition. ... Dim mrk As String ...
    (microsoft.public.data.ado)