PC Review


Reply
Thread Tools Rate Thread

ambiguous name. in query expression

 
 
=?Utf-8?B?15nXqNeZ15Eg15TXl9eR15nXkQ==?=
Guest
Posts: n/a
 
      28th Mar 2007
hello,

i wrote expression in query and i work fine.

when i import this query to another (but the same) application

it gives me the error statment above.

what can be the reason ?
--
תודה רבה
 
Reply With Quote
 
 
 
 
=?Utf-8?B?15nXqNeZ15Eg15TXl9eR15nXkQ==?=
Guest
Posts: n/a
 
      28th Mar 2007
thank you !

yes,

but it work in other (the same ) application.

if i try to change the name (one of them)

the query (based on mudole function) doesnt work.

thanks

--
תודה רבה


"Sheila D" wrote:

> are u using the same field name twice in your query?
>
> "יריב החביב" wrote:
>
> > hello,
> >
> > i wrote expression in query and i work fine.
> >
> > when i import this query to another (but the same) application
> >
> > it gives me the error statment above.
> >
> > what can be the reason ?
> > --
> > תודה רבה

 
Reply With Quote
 
=?Utf-8?B?U2hlaWxhIEQ=?=
Guest
Posts: n/a
 
      28th Mar 2007
are u using the same field name twice in your query?

"יריב החביב" wrote:

> hello,
>
> i wrote expression in query and i work fine.
>
> when i import this query to another (but the same) application
>
> it gives me the error statment above.
>
> what can be the reason ?
> --
> תודה רבה

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      28th Mar 2007
On Tue, 27 Mar 2007 16:04:09 -0700, ???? ????? <(E-Mail Removed)>
wrote:

>hello,
>
>i wrote expression in query and i work fine.
>
>when i import this query to another (but the same) application
>
>it gives me the error statment above.
>
>what can be the reason ?


If you use the same fieldname twice, you MUST explicitly name the table: put
[tablename].[fieldname] wherever you refer to the field, so Access can tell
which table's field you mean.

It's also a good idea to define an Alias name: in the query grid put

NewName: [tablename].[fieldname]

where NewName is some name not used elsewhere in the query.

John W. Vinson [MVP]
 
Reply With Quote
 
=?Utf-8?B?15nXqNeZ15Eg15TXl9eR15nXkQ==?=
Guest
Posts: n/a
 
      29th Mar 2007
thank you john !!!
--
תודה רבה


"John W. Vinson" wrote:

> On Tue, 27 Mar 2007 16:04:09 -0700, ???? ????? <(E-Mail Removed)>
> wrote:
>
> >hello,
> >
> >i wrote expression in query and i work fine.
> >
> >when i import this query to another (but the same) application
> >
> >it gives me the error statment above.
> >
> >what can be the reason ?

>
> If you use the same fieldname twice, you MUST explicitly name the table: put
> [tablename].[fieldname] wherever you refer to the field, so Access can tell
> which table's field you mean.
>
> It's also a good idea to define an Alias name: in the query grid put
>
> NewName: [tablename].[fieldname]
>
> where NewName is some name not used elsewhere in the query.
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Expression too complex in query expression NG Microsoft Access Queries 1 12th Aug 2009 05:21 PM
ambiguous outer join - how to include query in an sql statement cp2599@yahoo.com Microsoft Access Forms 0 20th Apr 2009 09:56 PM
ambiguous match exception in Marc Dynamic Query order method Andrus Microsoft C# .NET 1 27th Jun 2008 02:07 PM
Bizarre and frustrating! Phantom ambiguous field reference in a query Bill Reed via AccessMonster.com Microsoft Access Queries 2 31st May 2005 07:39 PM
Ambiguous joins, but query opens? Shelley Microsoft Access Queries 1 3rd May 2004 06:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:55 AM.