Wrox Programmer Forums
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2003, 03:55 PM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Left Join error

Using VB script in my asp page I am getting an error with this left join statement:

sub db_select_grid_VIPPUserLinks
grid_VIPPUserLinks_sql = "SELECT * FROM VIPP, VIPPUserLinks left join VIPPUserLinks on (VIPP.CustomerID = VIPPUSerLinks.CustomerID) WHERE VIPPUserLinks.user_id = " & user_id & ""

end sub


Error:Microsoft JET Database Engine error '80040e14'
Syntax error in JOIN operation.

Any thoughts on what might be wrong?
 
Old October 13th, 2003, 04:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

Your SQL should read (you have VIPPUserLinks in there twice):
Code:
SELECT * FROM VIPP left join VIPPUserLinks on (VIPP.CustomerID = VIPPUSerLinks.CustomerID) WHERE VIPPUserLinks.user_id = " & user_id & ""
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
 
Old October 13th, 2003, 04:16 PM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank YOU!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
left outer join keyvanjan Classic ASP Basics 1 April 15th, 2006 05:37 AM
left outer join keyvanjan Classic ASP Professional 0 February 5th, 2006 11:54 AM
left join msrnivas Classic ASP Databases 2 October 15th, 2004 07:37 AM
Oracle 8i inner join and left join problem puteri_84 Oracle 2 August 19th, 2004 07:14 AM
LEFT JOIN syntax 12th_Man Oracle 2 October 27th, 2003 09:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.