Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2005

Tip: Looking for answers? Try searching our database.

Error Message: Could Refer to more than one table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nik - 29 Dec 2005 16:46 GMT
This is the error message  I am recieving: "The Specified field
'[Posters-2000].State' could refer to more than one table listed in the

FROM clause of your SQL statement."

I have looked in the sql code and could not find anything wrong, below
is the code:

SELECT [Posters-2000].[Document Number], [Posters-2000].[Needs Update],

[Posters-2000].[Last Update], [Posters-2000].[New Update Date], [Orders

Table].[Poster(s) Ordered], [Orders Table].[Order Type], [Orders
Table].[State Ordered], [Locations Table].Company, [Orders
Table].[Order Date], [Posters-2000].Title, [Locations Table].City,
[Locations Table].State, [Orders Table].[Quantity Ordered], [Locations
Table].Service, [Locations Table].[Location ID], [Locations
Table].Division, [Locations Table].Location, [Locations Table].[Contact

First Name], [Locations Table].[Contact Last Name],
[Posters-2000].State
FROM [Posters-2000] INNER JOIN ([qry Poster Offerings] INNER JOIN
([Orders Table] INNER JOIN [Locations Table] ON [Orders
Table].[Location ID] = [Locations Table].[Location ID]) ON [qry Poster
Offerings].[Poster Set] = [Orders Table].[Poster(s) Ordered]) ON
[Posters-2000].State = [Orders Table].[State Ordered]
WHERE ((([Posters-2000].[Needs Update])=Yes) AND (([Orders
Table].[Order Type])="New") AND (([Locations Table].Service) Is Not
Null));

It appears that everything has a table associated to it, if needed.
Maybe I just have been staring at it for way to long to notice
anything.
Allen Browne - 30 Dec 2005 04:54 GMT
Nik, I would expect that SQL statement to work correctly too.

Make sure the Name AutoCorrect boxes are unchecked under:
   Tools | Options | General
Then compact the database.
Then make a design change to the query.
Hopefully that will be enough to unconfuse Access.

If that does not work, you appear to have a query as a source "table" for
this query. If that query also uses the Posters-2000 table, you might
consider aliasing the table in that query.

Actually you might consider aliasing the table name in this query anyway.
There's a chance that the hyphen in the table name might be what is
confusing Access. That does happen with data in a primary key field, but I
would not have expected it to be an issue in a table name. If that does
solve the problem, you might want to locate msjet40.dll on your hard disk,
and see if it needs a service pack applied from:
   http://support.microsoft.com/kb/239114

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> This is the error message  I am recieving: "The Specified field
> '[Posters-2000].State' could refer to more than one table listed in the
[quoted text clipped - 29 lines]
> Maybe I just have been staring at it for way to long to notice
> anything.
Nik - 30 Dec 2005 15:17 GMT
Tried the first part, but didnt fix anything. The query does use
Posters-2000, so it looks like I need to alias that table name.

I have never alaised anything, could you give me some insight on how
to.

Thanks.
Allen Browne - 30 Dec 2005 17:03 GMT
Open the query in design view.
Right-click the table in the upper pane, and choose Properties.
The first property in the Properties box is the Alias.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Tried the first part, but didnt fix anything. The query does use
> Posters-2000, so it looks like I need to alias that table name.
>
> I have never alaised anything, could you give me some insight on how
> to.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.