PC Review


Reply
Thread Tools Rate Thread

Can I Join query like this

 
 
Eric
Guest
Posts: n/a
 
      6th Sep 2006
I try to join query like this but it gives syntax error on join

SELECT ti.CORP, ti.TECH, ti.TECHCONT, tj.LstVldTech, tpr.Status,
tpr.TicketNum
FROM tbl_validDisputes AS tj, tbl_PPVResearch AS tpr INNER JOIN tech_id
AS ti ON Mid(tpr.AccountNum,1,5) = ti.CORP
WHERE (((ti.TECH)=[tj].[LstVldTech]) AND
((tpr.TicketNum)=[tj].[ticketnum]));

Thanks.

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      6th Sep 2006
I wouldn't advise it.

Use the JOIN (or INNER JOIN) key word for all tables. Something like:

SELECT ti.CORP, ti.TECH, ti.TECHCONT, tj.LstVldTech, tpr.Status,
tpr.TicketNum
FROM tbl_validDisputes AS tj INNER JOIN (tbl_PPVResearch AS tpr INNER JOIN
tech_id
AS ti ON Mid(tpr.AccountNum,1,5) = ti.CORP) ON
tpr.TicketNum)=[tj].[ticketnum])
WHERE (((ti.TECH)=[tj].[LstVldTech])


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Eric" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I try to join query like this but it gives syntax error on join
>
> SELECT ti.CORP, ti.TECH, ti.TECHCONT, tj.LstVldTech, tpr.Status,
> tpr.TicketNum
> FROM tbl_validDisputes AS tj, tbl_PPVResearch AS tpr INNER JOIN tech_id
> AS ti ON Mid(tpr.AccountNum,1,5) = ti.CORP
> WHERE (((ti.TECH)=[tj].[LstVldTech]) AND
> ((tpr.TicketNum)=[tj].[ticketnum]));
>
> Thanks.
>



 
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
Query Join - Outer Join? MrRJ Microsoft Access Queries 5 12th May 2010 03:52 PM
Re: Query Join - Outer Join? MrRJ Microsoft Access Queries 1 12th May 2010 03:16 PM
update query on a JOIN Table with a query Not Work Boon Microsoft Access Queries 1 1st Jul 2009 08:59 PM
Left Join, Inner Join Nested Query =?Utf-8?B?TGlsTW9yZVBsZWFzZQ==?= Microsoft Access Queries 3 3rd Nov 2006 07:31 PM
#Error in result set with query containing table and left join to another query bu Microsoft Access 0 6th Apr 2005 09:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 PM.