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!

Join query table references ADO Recordsets

Status
Not open for further replies.

seanybravo

IS-IT--Management
Sep 24, 2003
89
GB
I am opening a recoreset with this join query:

Code:
strSQL = "SELECT tblData.*, tblTitle.*, tblCustomCategory.* FROM ((((( tblData LEFT JOIN (SELECT * FROM tblTitle IN '" & adminPath & "') AS tblTitle ON tblData.fldContactTitle = tblTitle.fldTitleID) LEFT JOIN (SELECT * FROM tblCategoryList IN '" & adminPath & "') AS tblCustomCategory ON tblData.fldCategory1 = tblCustomCategory.fldID) LEFT JOIN (SELECT * FROM tblCategoryList IN '" & adminPath & "') AS tblCustomCategory1 ON tblData.fldCategory2 = tblCustomCategory1.fldID) LEFT JOIN (SELECT * FROM tblCategoryList IN '" & adminPath & "') AS tblCustomCategory2 ON tblData.fldCategory3 = tblCustomCategory2.fldID) LEFT JOIN (SELECT * FROM tblCategoryList IN '" & adminPath & "') AS tblCustomCategory3 ON tblData.fldCategory4 = tblCustomCategory3.fldID)"

I am having trouble referencing the table specific information for example

Code:
response.Write(rsCustom("tblCustomCategory1.fldDefinition"))

will not work. Is there a way of getting the information out of the Recordset?

Thanks

Sean
 
SELECT tblData.*, tblTitle.*, tblCustomCategory.* FROM
You select nothing from tblCustomCategory1 ...

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