Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 SQL Statement
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

The Omega
New Member

55 Posts

Posted - 17 September 2003 :  00:45:17  Show Profile
I need some help with the particulars on this sql statement.

Here is the current statement I have writen up.

"SELECT D.ad_DispatchID, D.ad_Pickuptime, D.ad_Readytime, D.ad_Calltime, D.ad_Dispatchtime, D.ad_From, D.ad_Fromaddy, D.ad_Fromaddy2, D.ad_To, D.ad_Toaddy, D.ad_Toaddy2, D.ad_HAWB, D.ad_Move, D.ad_Trip, D.ad_Pieces, D.ad_Weight, D.ad_Vehicle, D.ad_Who, D.ad_Customer, D.ad_Dispatcher, D.ad_Arrival, D.ad_PODtime, D.ad_PODto, D.ad_Notes, D.ad_Signature, D.ad_Rate, D.ad_DriverID, D.ad_Confby, D.ad_Charges, D.ad_DispatchDate, S.ds_Total, P.di_Full, P.di_Cell, P.di_Home FROM (Dispatches D LEFT JOIN Statuses S ON (D.ad_DriverID = S.ds_DriverID) ) LEFT JOIN Driver P ON D.ad_DriverID = P.di_DriverID"

Here is what I am trying to change too.

"SELECT D.ad_DispatchID, D.ad_Pickuptime, D.ad_Readytime, D.ad_Calltime, D.ad_Dispatchtime, D.ad_From, D.ad_Fromaddy, D.ad_Fromaddy2, D.ad_To, D.ad_Toaddy, D.ad_Toaddy2, D.ad_HAWB, D.ad_Move, D.ad_Trip, D.ad_Pieces, D.ad_Weight, D.ad_Vehicle, D.ad_Who, D.ad_Customer, D.ad_Dispatcher, D.ad_Arrival, D.ad_PODtime, D.ad_PODto, D.ad_Notes, D.ad_Signature, D.ad_Rate, D.ad_DriverID, D.ad_Confby, D.ad_Charges, D.ad_DispatchDate, S.ds_Total, P.di_Full, P.di_Cell, P.di_Home, C.ci_Fullname FROM (Dispatches D LEFT JOIN Statuses S ON (D.ad_DriverID = S.ds_DriverID) ) LEFT JOIN Driver P ON D.ad_DriverID = P.di_DriverID LEFT JOIN Customer C ON D.ad_Customer = C.ci_Customer"

Access needs a series of brackets that I dont know how to arrange.

Edited by - The Omega on 17 September 2003 00:46:16

snaayk
Senior Member

USA
1061 Posts

Posted - 17 September 2003 :  10:57:34  Show Profile  Visit snaayk's Homepage  Send snaayk an AOL message  Send snaayk an ICQ Message  Send snaayk a Yahoo! Message
REmove all the brackets and ACCESS will/should put them where it sees fit.
Go to Top of Page

The Omega
New Member

55 Posts

Posted - 17 September 2003 :  11:43:06  Show Profile
Nope.... already tried it but just tried it again and it did not work.... anyone else know the bracket configuration for three left joins for access/jet db
Go to Top of Page

The Omega
New Member

55 Posts

Posted - 17 September 2003 :  14:08:48  Show Profile
Got it fixed now.... thanks anyways
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07