Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another Join query Problem

Status
Not open for further replies.

seanybravo

IS-IT--Management
Sep 24, 2003
89
GB
Sorry for anoter SQL query post I though that I was getting the hang of this:

SELECT tblData.*, tblTitle.*, tblCategoryList.* FROM ((tblData LEFT JOIN (SELECT * FROM tblTitle IN 'E:\Websites\ebusinessdirectories\Database\Admin.mdb') AS tblTitle ON tblData.fldContactTitle = tblTitle.fldTitleID) LEFT JOIN (SELECT * FROM tblCategoryList IN 'E:\Websites\ebusinessdirectories\Database\Admin.mdb') AS tblCustomCategory ON tblData.fldCategory1 = tblCustomCategory.fldID) ORDER BY fldCompanyName

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine does not recognize 'tblCategoryList.*' as a valid field name or expression.

Both tblTitle and tblCategoryList are in the Admin Database. The tblData link works fine so why am I having problems with the category list in the same location?

Thanks for any help.
 
SELECT tblData.*, tblTitle.*, tblCategoryList.* FROM ((tblData LEFT JOIN (SELECT * FROM tblTitle IN 'E:\Websites\ebusinessdirectories\Database\Admin.mdb') AS tblTitle ON tblData.fldContactTitle = tblTitle.fldTitleID) LEFT JOIN (SELECT * FROM tblCategoryList IN 'E:\Websites\ebusinessdirectories\Database\Admin.mdb') AS tblCustomCategory ON tblData.fldCategory1 = tblCustomCategory.fldID) ORDER BY fldCompanyName

tblCategoryList As tblCustomCategory
 
AS [!]tblCustomCategory [/!]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top